diff options
author | Len Brown <len.brown@intel.com> | 2015-10-22 02:42:12 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2015-10-22 02:42:12 -0400 |
commit | 759d2a932b82009a7039ef5567e7dcba153ce123 (patch) | |
tree | 1aae8d09c4653c21ae7038013b68ac0883775a64 /tools | |
parent | 21ed5574d1622118b49b0c6342acc8d27d0799be (diff) |
tools/power turbostat: bugfix: print MAX_NON_TURBO_RATIO
MSR_TURBO_ACTIVATION_RATIO: 0x00000016 (MAX_NON_TURBO_RATIO=6 lock=0)
should print all 7 bits of MAX_NON_TURBO_RATIO (in decimal):
MSR_TURBO_ACTIVATION_RATIO: 0x00000016 (MAX_NON_TURBO_RATIO=22 lock=0)
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 84ec4e459975..d8e4b20b6d54 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
@@ -1440,7 +1440,7 @@ dump_config_tdp(void) | |||
1440 | 1440 | ||
1441 | get_msr(base_cpu, MSR_TURBO_ACTIVATION_RATIO, &msr); | 1441 | get_msr(base_cpu, MSR_TURBO_ACTIVATION_RATIO, &msr); |
1442 | fprintf(stderr, "cpu%d: MSR_TURBO_ACTIVATION_RATIO: 0x%08llx (", base_cpu, msr); | 1442 | fprintf(stderr, "cpu%d: MSR_TURBO_ACTIVATION_RATIO: 0x%08llx (", base_cpu, msr); |
1443 | fprintf(stderr, "MAX_NON_TURBO_RATIO=%d", (unsigned int)(msr) & 0xEF); | 1443 | fprintf(stderr, "MAX_NON_TURBO_RATIO=%d", (unsigned int)(msr) & 0x7F); |
1444 | fprintf(stderr, " lock=%d", (unsigned int)(msr >> 31) & 1); | 1444 | fprintf(stderr, " lock=%d", (unsigned int)(msr >> 31) & 1); |
1445 | fprintf(stderr, ")\n"); | 1445 | fprintf(stderr, ")\n"); |
1446 | } | 1446 | } |