tools/power turbostat: Print the C-state Pre-wake settings
authorChen Yu <yu.c.chen@intel.com>
Wed, 28 Apr 2021 04:18:12 +0000 (12:18 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 4 May 2021 23:10:32 +0000 (19:10 -0400)
commitaeb01e6d71ffaf3011ac755c3083cc200ed57cb4
tree3eb224e43d6b6bf4dc8a23de29e91d3ee8c9d1a8
parent8c69da293041352d15a2b6e8010c141822a416c5
tools/power turbostat: Print the C-state Pre-wake settings

C-state pre-wake setting[1] is an optimization for some Intel CPUs to
be woken up from deep C-states in order to reduce latency. According to
the spec, the BIT30 is the C-state Pre-wake Disable. Expose this setting
accordingly.
Sample output from turbostat:
...
cpu51: MSR_IA32_POWER_CTL: 0x1a00a40059 (C1E auto-promotion: DISabled)
C-state Pre-wake: ENabled
cpu51: MSR_TURBO_RATIO_LIMIT: 0x2021212121212224
...

[1] https://intel.github.io/wult/#c-state-pre-wake

Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c