@@ -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;
@@ -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
Add bindings to prepare the enablement of the rcppc_cpufreq driver. Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> --- rust/bindings/bindings_helper.h | 1 + rust/helpers.c | 6 ++++++ 2 files changed, 7 insertions(+)