tools/power turbostat: fix decoding of HWP_STATUS
authorAntti Laakso <antti.laakso@intel.com>
Wed, 25 Jan 2023 13:17:50 +0000 (15:17 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 17 Mar 2023 15:36:46 +0000 (11:36 -0400)
commit92c25393586ac799b9b7d9e50434f3c44a7622c4
treed2c646fb9da0e96371fdab4754621262ea5c9605
parent93cac4150727dae0ee89f501dd75413b88eedec0
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>
tools/power/x86/turbostat/turbostat.c