Skip to content

Commit 9d84fd8

Browse files
Darksonnvireshk
authored andcommitted
rust: cpufreq: add __rust_helper to helpers
This is needed to inline these helpers into Rust code. Signed-off-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 8c8b12a commit 9d84fd8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rust/helpers/cpufreq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#include <linux/cpufreq.h>
44

55
#ifdef CONFIG_CPU_FREQ
6-
void rust_helper_cpufreq_register_em_with_opp(struct cpufreq_policy *policy)
6+
__rust_helper void
7+
rust_helper_cpufreq_register_em_with_opp(struct cpufreq_policy *policy)
78
{
89
cpufreq_register_em_with_opp(policy);
910
}

0 commit comments

Comments
 (0)