diff options
author | Zhang Rui <rui.zhang@intel.com> | 2023-03-27 09:57:06 +0300 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2023-09-27 17:14:18 +0300 |
commit | c2c25e85df316a624e4a8ee85d65ea29265f486d (patch) | |
tree | 92454a1251a57a5f440fde2dc075600a9a025da0 /tools/power | |
parent | fcfa1ce074ab76272639961d4d7900b91657a8d5 (diff) | |
download | linux-c2c25e85df316a624e4a8ee85d65ea29265f486d.tar.xz |
tools/power/turbostat: Remove a redundant check
Platforms with has_msr_misc_pwr_mgmt set is a subset of platforms with
has_nhm_msrs set.
Thus remove the redudant check for platform->has_nhm_msrs.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index bc221e800aec..4eb10491f714 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -5665,9 +5665,6 @@ void decode_misc_pwr_mgmt_msr(void) { unsigned long long msr; - if (!platform->has_nhm_msrs) - return; - if (!platform->has_msr_misc_pwr_mgmt) return; |