Skip to content

Commit 3d6f258

Browse files
John B. Wyatt IVshuahkh
authored andcommitted
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]>
1 parent 8d09744 commit 3d6f258

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)