mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
8c8b12a556
commit
9d84fd86d9
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@
|
|||
#include <linux/cpufreq.h>
|
||||
|
||||
#ifdef CONFIG_CPU_FREQ
|
||||
void rust_helper_cpufreq_register_em_with_opp(struct cpufreq_policy *policy)
|
||||
__rust_helper void
|
||||
rust_helper_cpufreq_register_em_with_opp(struct cpufreq_policy *policy)
|
||||
{
|
||||
cpufreq_register_em_with_opp(policy);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue