* [PATCH] pm: cpupower: Add header changes for cpufreq.h to SWIG bindings
@ 2024-12-24 6:23 John B. Wyatt IV
2024-12-26 17:56 ` Shuah Khan
0 siblings, 1 reply; 2+ messages in thread
From: John B. Wyatt IV @ 2024-12-24 6:23 UTC (permalink / raw)
To: Shuah Khan, Thomas Renninger
Cc: John B. Wyatt IV, linux-pm, Mario Limonciello, Shuah Khan,
Rafael J. Wysocki, linux-kernel, John Kacur, John B. Wyatt IV
"cpupower: Add support for showing energy performance preference" added
two new functions to cpufreq.h. This patch adds them to the bindings.
Link: https://lore.kernel.org/linux-pm/8dc731c3-6586-4265-ae6a-d93ed219a963@linuxfoundation.org/T/#t
Tested by compiling both libcpupower and the headers; running the test
script that does not use the functions as a basic sanity test.
Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
---
tools/power/cpupower/bindings/python/raw_pylibcpupower.swg | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg b/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
index 96556d87a745..a8226c79cfea 100644
--- a/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
+++ b/tools/power/cpupower/bindings/python/raw_pylibcpupower.swg
@@ -134,6 +134,9 @@ void cpufreq_put_stats(struct cpufreq_stats *stats);
unsigned long cpufreq_get_transitions(unsigned int cpu);
+char *cpufreq_get_energy_performance_preference(unsigned int cpu);
+void cpufreq_put_energy_performance_preference(char *ptr);
+
int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
int cpufreq_modify_policy_min(unsigned int cpu, unsigned long min_freq);
--
2.47.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pm: cpupower: Add header changes for cpufreq.h to SWIG bindings
2024-12-24 6:23 [PATCH] pm: cpupower: Add header changes for cpufreq.h to SWIG bindings John B. Wyatt IV
@ 2024-12-26 17:56 ` Shuah Khan
0 siblings, 0 replies; 2+ messages in thread
From: Shuah Khan @ 2024-12-26 17:56 UTC (permalink / raw)
To: John B. Wyatt IV, Thomas Renninger
Cc: linux-pm, Mario Limonciello, Shuah Khan, Rafael J. Wysocki,
linux-kernel, John Kacur, John B. Wyatt IV, Shuah Khan
On 12/23/24 23:23, John B. Wyatt IV wrote:
> "cpupower: Add support for showing energy performance preference" added
> two new functions to cpufreq.h. This patch adds them to the bindings.
>
> Link: https://lore.kernel.org/linux-pm/8dc731c3-6586-4265-ae6a-d93ed219a963@linuxfoundation.org/T/#t
>
> Tested by compiling both libcpupower and the headers; running the test
> script that does not use the functions as a basic sanity test.
>
> Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com>
> Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com>
> ---
Thank for the patch. Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/?h=cpupower
This patch will be included in the 6.14-rc1 pull request to Rafael.
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-26 17:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24 6:23 [PATCH] pm: cpupower: Add header changes for cpufreq.h to SWIG bindings John B. Wyatt IV
2024-12-26 17:56 ` Shuah Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox