diff options
author | Len Brown <len.brown@intel.com> | 2016-03-13 08:21:22 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2016-03-13 09:22:47 +0100 |
commit | 6c34f160df82ae07bfff5b4c51f50622e9c2759e (patch) | |
tree | e5d3173eecd396d66461f15610045231a16b1b43 /tools | |
parent | tools/power turbostat: call __cpuid() instead of __get_cpuid() (diff) | |
download | linux-6c34f160df82ae07bfff5b4c51f50622e9c2759e.tar.xz linux-6c34f160df82ae07bfff5b4c51f50622e9c2759e.zip |
tools/power turbostat: correct output for MSR_NHM_SNB_PKG_CST_CFG_CTL dump
MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x1e008008 (...pkg-cstate-limit=0: unlimited)
should print as
MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x1e008008 (...pkg-cstate-limit=8: unlimited)
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index b34241c3c92e..a551630a82b6 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -1532,7 +1532,7 @@ dump_nhm_cst_cfg(void) (msr & NHM_C3_AUTO_DEMOTE) ? "demote-C3, " : "", (msr & NHM_C1_AUTO_DEMOTE) ? "demote-C1, " : "", (msr & (1 << 15)) ? "" : "UN", - (unsigned int)msr & 7, + (unsigned int)msr & 0xF, pkg_cstate_limit_strings[pkg_cstate_limit]); return; } |