summaryrefslogtreecommitdiff
path: root/tools/power/x86
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2016-04-06 21:15:54 (GMT)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-07 20:18:30 (GMT)
commit8ae7225591fd15aac89769cbebb3b5ecc8b12fe5 (patch)
tree05fa0722b75b20719922309412eee4ea4f7214ba /tools/power/x86
parent3fdb74649b4f18ccaa88766750b616dec6acb5b0 (diff)
downloadlinux-8ae7225591fd15aac89769cbebb3b5ecc8b12fe5.tar.xz
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/power/x86')
-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;