Skip to content

Commit a9a9b6d

Browse files
committed
pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
JIRA: https://issues.redhat.com/browse/RHEL-80660 commit 3d6f258 Author: John B. Wyatt IV <[email protected]> Date: Wed Jan 8 17:18:44 2025 -0500 pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG "tools/cpupower: display residency value in idle-info" added a new function to cpuidle.h. This patch adds them to the bindings. Link: https://lore.kernel.org/linux-pm/[email protected]/ 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 471cd37 commit a9a9b6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
163163
unsigned int disable);
164164
unsigned long cpuidle_state_latency(unsigned int cpu,
165165
unsigned int idlestate);
166+
unsigned long cpuidle_state_residency(unsigned int cpu,
167+
unsigned int idlestate);
166168
unsigned long cpuidle_state_usage(unsigned int cpu,
167169
unsigned int idlestate);
168170
unsigned long long cpuidle_state_time(unsigned int cpu,

0 commit comments

Comments
 (0)