tools/power turbostat: adjust for temperature offset
authorLen Brown <len.brown@intel.com>
Tue, 29 Sep 2020 21:28:42 +0000 (17:28 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 23 Oct 2020 20:50:16 +0000 (16:50 -0400)
commit6ff7cb371c4bea3dba03a56d774da925e78a5087
treede406d6c3366a1c5199081aa76820f5d76d71238
parent4be61e6b769fc3f97b58870aa4258e27968f07e1
tools/power turbostat: adjust for temperature offset

cpu1: MSR_IA32_TEMPERATURE_TARGET: 0x05640000 (95 C) (100 default - 5 offset)

Account for the new "offset" field in MSR_TEMPERATURE_TARGET.
While this field is usually zero, ignoring it results in over-stating
the current temperature, both per-core and per-package.

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