Skip to content

Commit 471cd37

Browse files
committed
pm: cpupower: Add header changes for cpufreq.h to SWIG bindings
JIRA: https://issues.redhat.com/browse/RHEL-80660 commit 8d09744 Author: John B. Wyatt IV <[email protected]> Date: Tue Dec 24 01:23:28 2024 -0500 pm: cpupower: Add header changes for cpufreq.h to SWIG bindings "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/[email protected]/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. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: "John B. Wyatt IV" <[email protected]> Signed-off-by: "John B. Wyatt IV" <[email protected]> Signed-off-by: Shuah Khan <[email protected]> Signed-off-by: David Arcari <[email protected]>
1 parent a7db670 commit 471cd37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/power/cpupower/bindings/python/raw_pylibcpupower.swg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ void cpufreq_put_stats(struct cpufreq_stats *stats);
134134

135135
unsigned long cpufreq_get_transitions(unsigned int cpu);
136136

137+
char *cpufreq_get_energy_performance_preference(unsigned int cpu);
138+
void cpufreq_put_energy_performance_preference(char *ptr);
139+
137140
int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
138141

139142
int cpufreq_modify_policy_min(unsigned int cpu, unsigned long min_freq);

0 commit comments

Comments
 (0)