]> git.baikalelectronics.ru Git - kernel.git/commit
tools/power turbostat: Fix Core C6 residency on Atom CPUs
authorZhang Rui <rui.zhang@intel.com>
Wed, 21 Apr 2021 14:22:47 +0000 (22:22 +0800)
committerLen Brown <len.brown@intel.com>
Wed, 5 May 2021 00:01:00 +0000 (20:01 -0400)
commit426c04e3d713b1f362d81c0481fb414b277886a4
tree800aa565726cf1499723dd6d38603d46b872c0f1
parentc3cff9131806c4d8b780f8a71f797d163b786a44
tools/power turbostat: Fix Core C6 residency on Atom CPUs

For Atom CPUs that have core cstate deeper than C6,
MSR_CORE_C6_RESIDENCY actually returns the residency for both CC6 and
deeper Core cstates.
Thus, the real Core C6 residency should be the subtraction of
MSR_CORE_C6_RESIDENCY return value and MSR_CORE_C6_RESIDENCY return value.

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