]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7a4cc180adb5e3fbf6c993c8227d031206b3cf6f
treede406d6c3366a1c5199081aa76820f5d76d71238
parent2eaf8954c13a0b3be7dcce21573b1808e243bf21
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