projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcfa1ce
)
tools/power/turbostat: Remove a redundant check
author
Zhang Rui
<rui.zhang@intel.com>
Mon, 27 Mar 2023 06:57:06 +0000
(14:57 +0800)
committer
Zhang Rui
<rui.zhang@intel.com>
Wed, 27 Sep 2023 14:14:18 +0000
(22:14 +0800)
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>
tools/power/x86/turbostat/turbostat.c
patch
|
blob
|
history
diff --git
a/tools/power/x86/turbostat/turbostat.c
b/tools/power/x86/turbostat/turbostat.c
index bc221e800aec64fab6e967a6010ba6834ef04144..4eb10491f71439fd988ec19a6c060c8ff4307550 100644
(file)
--- 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;