linux/tools/power/cpupower/utils
Gautham R. Shenoy 14a3318b4a pm: cpupower: Fix printing of CORE, CPU fields in cpupower-monitor
After the commit 0014f65e3d ("pm: cpupower: remove hard-coded
topology depth values"), "cpupower monitor" output ceased to print the
CORE and the CPU fields on a multi-socket platform.

The reason for this is that the patch changed the behaviour to break
out of the switch-case after printing the PKG details, while prior to
the patch, the CORE and the CPU details would also get printed since
the "if" condition check would pass for any level whose topology depth
was lesser than that of a package.

Fix this ensuring all the details below a desired topology depth are
printed in the cpupower monitor output.

Link: https://lore.kernel.org/r/20250612122355.19629-3-gautham.shenoy@amd.com
Fixes: 0014f65e3d ("pm: cpupower: remove hard-coded topology depth values")
Signed-off-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2025-06-18 16:21:18 -06:00
..
helpers cpupower: Adjust whitespace for amd-pstate specific prints 2024-12-20 09:12:07 -07:00
idle_monitor pm: cpupower: Fix printing of CORE, CPU fields in cpupower-monitor 2025-06-18 16:21:18 -06:00
builtin.h cpupower: Introduce powercap intel-rapl library and powercap-info command 2022-11-30 16:48:28 -07:00
cpufreq-info.c cpupower: Don't fetch maximum latency when EPP is enabled 2024-12-20 09:12:07 -07:00
cpufreq-set.c cpupower: Provide online and offline CPU information 2020-10-26 13:36:24 -06:00
cpuidle-info.c tools/cpupower: display residency value in idle-info 2024-08-09 10:32:33 -06:00
cpuidle-set.c cpupower: Fix cpuidle_set to accept only numeric values for idle-set operation. 2023-07-18 16:07:08 -06:00
cpupower-info.c tools/cpupower: Choose base_cpu to display default cpupower details 2022-11-25 10:50:04 -07:00
cpupower-set.c cpupower: Add turbo-boost support in cpupower 2023-07-18 16:07:01 -06:00
cpupower.c cpupower: Introduce powercap intel-rapl library and powercap-info command 2022-11-30 16:48:28 -07:00
powercap-info.c cpupower: Introduce powercap intel-rapl library and powercap-info command 2022-11-30 16:48:28 -07:00
version-gen.sh