]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: completion: implement initial abstraction
authorDanilo Krummrich <dakr@kernel.org>
Thu, 12 Jun 2025 12:17:13 +0000 (14:17 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 13 Jun 2025 21:46:56 +0000 (23:46 +0200)
commit1b56e765bf8990f1f60e124926c11fc4ac63d752
treed6d8e096bc452502a27dee7563a46ba2863181eb
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
rust: completion: implement initial abstraction

Implement a minimal abstraction for the completion synchronization
primitive.

This initial abstraction only adds complete_all() and
wait_for_completion(), since that is what is required for the subsequent
Devres patch.

Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Juri Lelli <juri.lelli@redhat.com>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ben Segall <bsegall@google.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20250612121817.1621-2-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/bindings/bindings_helper.h
rust/helpers/completion.c [new file with mode: 0644]
rust/helpers/helpers.c
rust/kernel/sync.rs
rust/kernel/sync/completion.rs [new file with mode: 0644]