Skip to content

Commit e9be7dd

Browse files
committed
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>
1 parent fb5d432 commit e9be7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/power/x86/turbostat/turbostat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ int print_epb(struct thread_data *t, struct core_data *c, struct pkg_data *p)
19191919
if (get_msr(cpu, MSR_IA32_ENERGY_PERF_BIAS, &msr))
19201920
return 0;
19211921

1922-
switch (msr & 0x7) {
1922+
switch (msr & 0xF) {
19231923
case ENERGY_PERF_BIAS_PERFORMANCE:
19241924
epb_string = "performance";
19251925
break;

0 commit comments

Comments
 (0)