Files
linux/tools/power/cpupower/utils/idle_monitor
Kaushlendra Kumar 6b401a5b2d cpupower: idle_monitor: fix incorrect value logged after stop
The cpuidle sysfs monitor printed the previous sample’s counter
value in cpuidle_stop() instead of the freshly read one. The dprint
line used previous_count[cpu][state] while current_count[cpu][state]
had just been populated. This caused misleading debug output.

Switch the logging to current_count so the post-interval snapshot
matches the displayed value.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kaushlendra Kumar <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
2025-12-15 12:33:28 -07:00
..