OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fdb746
)
tools/power turbostat: SGX state should print only if --debug
author
Len Brown
<len.brown@intel.com>
Wed, 6 Apr 2016 21:15:54 +0000
(17:15 -0400)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 20:18:30 +0000
(22:18 +0200)
The CPUID.SGX bit was printed, even if --debug was used
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@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
ee1551b
..
e2440df
100644
(file)
--- a/
tools/power/x86/turbostat/turbostat.c
+++ b/
tools/power/x86/turbostat/turbostat.c
@@
-3187,7
+3187,7
@@
void process_cpuid()
if (debug)
decode_misc_enable_msr();
- if (max_level >= 0x7) {
+ if (max_level >= 0x7
&& debug
) {
int has_sgx;
ecx = 0;