Skip to content

Commit 92c2539

Browse files
anttilaaksolenb
authored andcommitted
tools/power turbostat: fix decoding of HWP_STATUS
The "excursion to minimum" information is in bit2 in HWP_STATUS MSR. Fix the bitmask used for decoding the register. Signed-off-by: Antti Laakso <antti.laakso@intel.com> Reviewed-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
1 parent 93cac41 commit 92c2539

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/power/x86/turbostat/turbostat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4425,7 +4425,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p)
44254425

44264426
fprintf(outf, "cpu%d: MSR_HWP_STATUS: 0x%08llx "
44274427
"(%sGuaranteed_Perf_Change, %sExcursion_Min)\n",
4428-
cpu, msr, ((msr) & 0x1) ? "" : "No-", ((msr) & 0x2) ? "" : "No-");
4428+
cpu, msr, ((msr) & 0x1) ? "" : "No-", ((msr) & 0x4) ? "" : "No-");
44294429

44304430
return 0;
44314431
}

0 commit comments

Comments
 (0)