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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:41 +0000 (12:10 +0200)
commit88cdf1d8a522bad9b87b04e21b65d1d148232034
treeda0995f0e5b061e42e98eb31a339ca074c3be870
parent6ecdea91ef95989bc55bc70e1ee2e2b98e46e93f
tools/power turbostat: fix decoding of HWP_STATUS

[ Upstream commit 92c25393586ac799b9b7d9e50434f3c44a7622c4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/power/x86/turbostat/turbostat.c