mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 18:13:26 -04:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user