summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti Laakso <antti.laakso@intel.com>2023-01-25 16:17:50 +0300
committerLen Brown <len.brown@intel.com>2023-03-17 18:36:46 +0300
commit92c25393586ac799b9b7d9e50434f3c44a7622c4 (patch)
treed2c646fb9da0e96371fdab4754621262ea5c9605
parent93cac4150727dae0ee89f501dd75413b88eedec0 (diff)
downloadlinux-92c25393586ac799b9b7d9e50434f3c44a7622c4.tar.xz
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>
-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 eba8a20a4b00..7424c35fe209 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -4425,7 +4425,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p)
fprintf(outf, "cpu%d: MSR_HWP_STATUS: 0x%08llx "
"(%sGuaranteed_Perf_Change, %sExcursion_Min)\n",
- cpu, msr, ((msr) & 0x1) ? "" : "No-", ((msr) & 0x2) ? "" : "No-");
+ cpu, msr, ((msr) & 0x1) ? "" : "No-", ((msr) & 0x4) ? "" : "No-");
return 0;
}