diff mbox series

[RFC,5/6] rust: bindings: Add bindings for rcppc_cpufreq driver

Message ID 20240815082916.1210110-6-pierre.gondois@arm.com (mailing list archive)
State Handled Elsewhere, archived
Headers show
Series rust: cpufreq: Add cppc_cpufreq driver implementation | expand

Commit Message

Pierre Gondois Aug. 15, 2024, 8:29 a.m. UTC
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(+)
diff mbox series

Patch

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