tools/power turbostat: fix MSR_IA32_MISC_ENABLE MWAIT printout
authorLen Brown <len.brown@intel.com>
Thu, 9 Nov 2017 04:15:42 +0000 (23:15 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2018 16:13:06 +0000 (12:13 -0400)
MSR_IA32_MISC_ENABLE[18] is the MWAIT ENABLE bit, not DISABLE bit...

so

MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST No-MWAIT PREFETCH TURBO)

should print as:

MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)

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

index dd18aac6ccb27d27036603611c3f73dd7fedc72d..32f3a33a985095c0c157de8fdc7bae603fdeb923 100644 (file)
@@ -4056,7 +4056,7 @@ void decode_misc_enable_msr(void)
                        base_cpu, msr,
                        msr & MSR_IA32_MISC_ENABLE_TM1 ? "" : "No-",
                        msr & MSR_IA32_MISC_ENABLE_ENHANCED_SPEEDSTEP ? "" : "No-",
-                       msr & MSR_IA32_MISC_ENABLE_MWAIT ? "No-" : "",
+                       msr & MSR_IA32_MISC_ENABLE_MWAIT ? "" : "No-",
                        msr & MSR_IA32_MISC_ENABLE_PREFETCH_DISABLE ? "No-" : "",
                        msr & MSR_IA32_MISC_ENABLE_TURBO_DISABLE ? "No-" : "");
 }