lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240815082916.1210110-6-pierre.gondois@arm.com>
Date: Thu, 15 Aug 2024 10:29:09 +0200
From: Pierre Gondois <pierre.gondois@....com>
To: linux-kernel@...r.kernel.org
Cc: Pierre Gondois <pierre.gondois@....com>,
	"Rafael J. Wysocki" <rafael@...nel.org>,
	Len Brown <lenb@...nel.org>,
	Viresh Kumar <viresh.kumar@...aro.org>,
	Robert Moore <robert.moore@...el.com>,
	Miguel Ojeda <ojeda@...nel.org>,
	Alex Gaynor <alex.gaynor@...il.com>,
	Wedson Almeida Filho <wedsonaf@...il.com>,
	Boqun Feng <boqun.feng@...il.com>,
	Gary Guo <gary@...yguo.net>,
	Björn Roy Baron <bjorn3_gh@...tonmail.com>,
	Benno Lossin <benno.lossin@...ton.me>,
	Andreas Hindborg <a.hindborg@...sung.com>,
	Alice Ryhl <aliceryhl@...gle.com>,
	Martin Rodriguez Reboredo <yakoyoku@...il.com>,
	"Rob Herring (Arm)" <robh@...nel.org>,
	FUJITA Tomonori <fujita.tomonori@...il.com>,
	Mika Westerberg <mika.westerberg@...ux.intel.com>,
	Manos Pitsidianakis <manos.pitsidianakis@...aro.org>,
	Danilo Krummrich <dakr@...hat.com>,
	Thomas Bertschinger <tahbertschinger@...il.com>,
	linux-acpi@...r.kernel.org,
	linux-pm@...r.kernel.org,
	acpica-devel@...ts.linux.dev,
	rust-for-linux@...r.kernel.org
Subject: [RFC PATCH 5/6] rust: bindings: Add bindings for rcppc_cpufreq driver

Add bindings to prepare the enablement of the rcppc_cpufreq
driver.

Signed-off-by: Pierre Gondois <pierre.gondois@....com>
---
 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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ