Skip to content

Commit 73e44a5

Browse files
author
John B. Wyatt IV
committed
pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
JIRA: https://issues.redhat.com/browse/RHEL-91191 Upstream Status: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git commit 3d6f258 Author: John B. Wyatt IV <jwyatt@redhat.com> 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/20240809083728.266697-1-aboorvad@linux.ibm.com/ 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/20250108221852.30771-1-jwyatt@redhat.com Signed-off-by: "John B. Wyatt IV" <jwyatt@redhat.com> Signed-off-by: "John B. Wyatt IV" <sageofredondo@gmail.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: John B. Wyatt IV <jwyatt@redhat.com>
1 parent 84499cd commit 73e44a5

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)