diff options
author | Len Brown <len.brown@intel.com> | 2016-04-06 17:15:54 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-07 22:18:30 +0200 |
commit | 8ae7225591fd15aac89769cbebb3b5ecc8b12fe5 (patch) | |
tree | 05fa0722b75b20719922309412eee4ea4f7214ba /tools/power | |
parent | 3fdb74649b4f18ccaa88766750b616dec6acb5b0 (diff) | |
download | linux-stable-8ae7225591fd15aac89769cbebb3b5ecc8b12fe5.tar.gz linux-stable-8ae7225591fd15aac89769cbebb3b5ecc8b12fe5.tar.bz2 linux-stable-8ae7225591fd15aac89769cbebb3b5ecc8b12fe5.zip |
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')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 2 |
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; |