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>
This commit is contained in:
Len Brown 2016-04-06 17:15:54 -04:00 committed by Rafael J. Wysocki
parent 3fdb74649b
commit 8ae7225591
1 changed files with 1 additions and 1 deletions

View File

@ -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;