Commit 3d1f4a8d authored by Len Brown's avatar Len Brown Committed by Tim Gardner

tools/power turbostat: SGX state should print only if --debug

BugLink: http://bugs.launchpad.net/bugs/1591802

The CPUID.SGX bit was printed, even if --debug was used
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 8ae72255)
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarBrad Figg <brad.figg@canonical.com>
Acked-by: default avatarKamal Mostafa <kamal@canonical.com>
parent 5ded10f3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment