mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
tools/power turbostat: a small C-states dump readability immprovement
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>
This commit is contained in:
parent
ac980e1357
commit
3e8b62bf0c
@ -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, "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_C3_AUTO_UNDEMOTE) ? "UNdemote-C3, " : "",
|
||||||
(msr & SNB_C1_AUTO_UNDEMOTE) ? "UNdemote-C1, " : "",
|
(msr & SNB_C1_AUTO_UNDEMOTE) ? "UNdemote-C1, " : "",
|
||||||
(msr & NHM_C3_AUTO_DEMOTE) ? "demote-C3, " : "",
|
(msr & NHM_C3_AUTO_DEMOTE) ? "demote-C3, " : "",
|
||||||
|
Loading…
Reference in New Issue
Block a user