summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2018-02-13 11:12:04 -0800
committerBen Hutchings <ben@decadent.org.uk>2018-11-20 18:05:07 +0000
commit8fb64ba91bcfa8dc365f5bed1f29ffa399b7b2fc (patch)
tree27977f5251f539b89a8499221319ef5073a25d59 /tools
parent97d070818a05be5ccfc11c733196b60d970cb3cc (diff)
downloadlinux-stable-8fb64ba91bcfa8dc365f5bed1f29ffa399b7b2fc.tar.gz
linux-stable-8fb64ba91bcfa8dc365f5bed1f29ffa399b7b2fc.tar.bz2
linux-stable-8fb64ba91bcfa8dc365f5bed1f29ffa399b7b2fc.zip
tools/power turbostat: Correct SNB_C1/C3_AUTO_UNDEMOTE defines
commit e0d34648b4d77ba715e13739d04e7b0692fe5eaa upstream. According to the Intel Software Developers' Manual, Vol. 4, Order No. 335592, these macros have been reversed since they were added. Fixes: 889facbee3e6 ("tools/power turbostat: v3.0: monitor Watts and Temperature") Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index d0396af99fa0..e7e37e4f46e1 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -1088,8 +1088,8 @@ void print_verbose_header(void)
print_nhm_turbo_ratio_limits:
get_msr(0, MSR_NHM_SNB_PKG_CST_CFG_CTL, &msr);
-#define SNB_C1_AUTO_UNDEMOTE (1UL << 27)
-#define SNB_C3_AUTO_UNDEMOTE (1UL << 28)
+#define SNB_C3_AUTO_UNDEMOTE (1UL << 27)
+#define SNB_C1_AUTO_UNDEMOTE (1UL << 28)
fprintf(stderr, "cpu0: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x%08llx", msr);