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 16:18:30 -0400 |
commit | 8ae7225591fd15aac89769cbebb3b5ecc8b12fe5 (patch) | |
tree | 05fa0722b75b20719922309412eee4ea4f7214ba | |
parent | 3fdb74649b4f18ccaa88766750b616dec6acb5b0 (diff) |
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.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() | |||
3187 | if (debug) | 3187 | if (debug) |
3188 | decode_misc_enable_msr(); | 3188 | decode_misc_enable_msr(); |
3189 | 3189 | ||
3190 | if (max_level >= 0x7) { | 3190 | if (max_level >= 0x7 && debug) { |
3191 | int has_sgx; | 3191 | int has_sgx; |
3192 | 3192 | ||
3193 | ecx = 0; | 3193 | ecx = 0; |