tools/power turbostat: report CoreThr per measurement interval
authorLen Brown <len.brown@intel.com>
Sun, 6 Apr 2025 15:18:39 +0000 (11:18 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 6 Apr 2025 16:21:25 +0000 (12:21 -0400)
commitf729775f79a9c942c6c82ed6b44bd030afe10423
tree3c15a9e480108d3bc83c1bfccd9ef3979e3ff2fa
parenteb187540d13ae260b91dbca7257bc44bd83ca8c6
tools/power turbostat: report CoreThr per measurement interval

The CoreThr column displays total thermal throttling events
since boot time.

Change it to report events during the measurement interval.

This is more useful for showing a user the current conditions.
Total events since boot time are still available to the user via
/sys/devices/system/cpu/cpu*/thermal_throttle/*

Document CoreThr on turbostat.8

Fixes: eae97e053fe30 ("turbostat: Support thermal throttle count print")
Reported-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Cc: Chen Yu <yu.c.chen@intel.com>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c