diff options
| author | Danilo Krummrich <[email protected]> | 2025-06-12 12:17:13 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-06-13 21:46:56 +0000 |
| commit | 1b56e765bf8990f1f60e124926c11fc4ac63d752 (patch) | |
| tree | d6d8e096bc452502a27dee7563a46ba2863181eb /rust/helpers | |
| parent | Linux 6.16-rc1 (diff) | |
| download | kernel-1b56e765bf8990f1f60e124926c11fc4ac63d752.tar.gz kernel-1b56e765bf8990f1f60e124926c11fc4ac63d752.zip | |
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 <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Vincent Guittot <[email protected]>
Cc: Dietmar Eggemann <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Ben Segall <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Valentin Schneider <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Acked-by: Miguel Ojeda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers')
| -rw-r--r-- | rust/helpers/completion.c | 8 | ||||
| -rw-r--r-- | rust/helpers/helpers.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/rust/helpers/completion.c b/rust/helpers/completion.c new file mode 100644 index 000000000000..b2443262a2ae --- /dev/null +++ b/rust/helpers/completion.c @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include <linux/completion.h> + +void rust_helper_init_completion(struct completion *x) +{ + init_completion(x); +} diff --git a/rust/helpers/helpers.c b/rust/helpers/helpers.c index 0f1b5d115985..6451cfd94a8d 100644 --- a/rust/helpers/helpers.c +++ b/rust/helpers/helpers.c @@ -13,6 +13,7 @@ #include "build_assert.c" #include "build_bug.c" #include "clk.c" +#include "completion.c" #include "cpufreq.c" #include "cpumask.c" #include "cred.c" |
