aboutsummaryrefslogtreecommitdiffstats
path: root/tools/power
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2015-05-26 12:19:37 -0400
committerLen Brown <len.brown@intel.com>2015-05-27 18:04:00 -0400
commite9be7dd62899194ebdd90d417fc6c07d5d157912 (patch)
treee211ecf1e667ec73a271c95a094d481939b972fd /tools/power
parentfb5d432722e186c656285ccc088e35dbe24f6fd1 (diff)
tools/power turbostat: correctly decode of ENERGY_PERFORMANCE_BIAS
When EPB is 0xF, turbosat was incorrectly describing it as "custom" instead of calling it "powersave": < cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x0000000f (custom) > cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x0000000f (powersave) Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r--tools/power/x86/turbostat/turbostat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 256a5e1de381..f92211e9e70c 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -1919,7 +1919,7 @@ int print_epb(struct thread_data *t, struct core_data *c, struct pkg_data *p)
1919 if (get_msr(cpu, MSR_IA32_ENERGY_PERF_BIAS, &msr)) 1919 if (get_msr(cpu, MSR_IA32_ENERGY_PERF_BIAS, &msr))
1920 return 0; 1920 return 0;
1921 1921
1922 switch (msr & 0x7) { 1922 switch (msr & 0xF) {
1923 case ENERGY_PERF_BIAS_PERFORMANCE: 1923 case ENERGY_PERF_BIAS_PERFORMANCE:
1924 epb_string = "performance"; 1924 epb_string = "performance";
1925 break; 1925 break;