]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pm: cpupower: Add missing residency header changes in cpuidle.h to SWIG
authorJohn B. Wyatt IV <jwyatt@redhat.com>
Wed, 8 Jan 2025 22:18:44 +0000 (17:18 -0500)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 13 Jan 2025 23:13:49 +0000 (16:13 -0700)
"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>
tools/power/cpupower/bindings/python/raw_pylibcpupower.swg

index a8226c79cfeace9f2bf3000a992a1dfd27905741..d82af6fa93c361a1eb6c78a2df8602be18e62133 100644 (file)
@@ -163,6 +163,8 @@ int cpuidle_state_disable(unsigned int cpu, unsigned int idlestate,
                                   unsigned int disable);
 unsigned long cpuidle_state_latency(unsigned int cpu,
                                                unsigned int idlestate);
+unsigned long cpuidle_state_residency(unsigned int cpu,
+                                               unsigned int idlestate);
 unsigned long cpuidle_state_usage(unsigned int cpu,
                                        unsigned int idlestate);
 unsigned long long cpuidle_state_time(unsigned int cpu,