summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2016-04-06 17:15:54 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-07 22:18:30 +0200
commit8ae7225591fd15aac89769cbebb3b5ecc8b12fe5 (patch)
tree05fa0722b75b20719922309412eee4ea4f7214ba /tools
parent3fdb74649b4f18ccaa88766750b616dec6acb5b0 (diff)
downloadlinux-8ae7225591fd15aac89769cbebb3b5ecc8b12fe5.tar.bz2
tools/power turbostat: SGX state should print only if --debug
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index ee1551b6fa01..e2440df6029e 100644
--- 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;