Skip to content

Commit

Permalink
tools/power turbostat: SGX state should print only if --debug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lenb authored and rafaeljw committed Apr 7, 2016
1 parent 3fdb746 commit 8ae7225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/x86/turbostat/turbostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ae7225

Please sign in to comment.