tools/power turbostat: a small C-states dump readability immprovement
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 5 Sep 2017 12:25:42 +0000 (15:25 +0300)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2018 21:15:08 +0000 (17:15 -0400)
Improve readability a little bit by changing this output:

 MSR_PKG_CST_CONFIG_CONTROL: 0x00008407 (locked: pkg-cstate-limit=7: unlimited, automatic-c-state-conversion=off)

with this output:

 MSR_PKG_CST_CONFIG_CONTROL: 0x00008407 (locked, pkg-cstate-limit=7 (unlimited), automatic-c-state-conversion=off)

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c

index 14530de01e9616732a237b701fc1ebff4f69eb29..00a2a7ca5c473477b26627c853d34ea439e6679d 100644 (file)
@@ -2119,7 +2119,7 @@ dump_nhm_cst_cfg(void)
 
        fprintf(outf, "cpu%d: MSR_PKG_CST_CONFIG_CONTROL: 0x%08llx", base_cpu, msr);
 
-       fprintf(outf, " (%s%s%s%s%slocked: pkg-cstate-limit=%d: %s",
+       fprintf(outf, " (%s%s%s%s%slocked, pkg-cstate-limit=%d (%s)",
                (msr & SNB_C3_AUTO_UNDEMOTE) ? "UNdemote-C3, " : "",
                (msr & SNB_C1_AUTO_UNDEMOTE) ? "UNdemote-C1, " : "",
                (msr & NHM_C3_AUTO_DEMOTE) ? "demote-C3, " : "",