Add bindings to prepare the enablement of the rcppc_cpufreq driver. Signed-off-by: Pierre Gondois <pierre.gondois@xxxxxxx> --- rust/bindings/bindings_helper.h | 1 + rust/helpers.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/rust/bindings/bindings_helper.h b/rust/bindings/bindings_helper.h index bee2b6013690..a7ba64b5614b 100644 --- a/rust/bindings/bindings_helper.h +++ b/rust/bindings/bindings_helper.h @@ -22,6 +22,7 @@ #include <linux/slab.h> #include <linux/wait.h> #include <linux/workqueue.h> +#include <acpi/cppc_acpi.h> /* `bindgen` gets confused at certain things. */ const size_t RUST_CONST_HELPER_ARCH_SLAB_MINALIGN = ARCH_SLAB_MINALIGN; diff --git a/rust/helpers.c b/rust/helpers.c index 3b2850a11859..624b5c94dad6 100644 --- a/rust/helpers.c +++ b/rust/helpers.c @@ -370,6 +370,12 @@ void rust_helper_cpufreq_register_em_with_opp(struct cpufreq_policy *policy) cpufreq_register_em_with_opp(policy); } EXPORT_SYMBOL_GPL(rust_helper_cpufreq_register_em_with_opp); + +void rust_helper_cpufreq_verify_within_cpu_limits(struct cpufreq_policy_data *policy) +{ + cpufreq_verify_within_cpu_limits(policy); +} +EXPORT_SYMBOL_GPL(rust_helper_cpufreq_verify_within_cpu_limits); #endif #ifndef CONFIG_OF_DYNAMIC -- 2.25.1