summaryrefslogtreecommitdiffstats
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
parent3fdb74649b4f18ccaa88766750b616dec6acb5b0 (diff)
downloadop-kernel-dev-8ae7225591fd15aac89769cbebb3b5ecc8b12fe5.zip
op-kernel-dev-8ae7225591fd15aac89769cbebb3b5ecc8b12fe5.tar.gz
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>
-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 ee1551b..e2440df 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;
OpenPOWER on IntegriCloud