Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351102
b: refs/heads/master
c: 6792041
h: refs/heads/master
v: v3
  • Loading branch information
Len Brown committed Feb 9, 2013
1 parent 55f4cd3 commit 97295d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70b43400bc290764b49ff3497a9824604c66c409
refs/heads/master: 679204183472af16e8e75d2b1479459ad19bc67c
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/uapi/asm/msr-index.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
#define DEBUGCTLMSR_BTS_OFF_USR (1UL << 10)
#define DEBUGCTLMSR_FREEZE_LBRS_ON_PMI (1UL << 11)

#define MSR_IA32_POWER_CTL 0x000001fc

#define MSR_IA32_MC0_CTL 0x00000400
#define MSR_IA32_MC0_STATUS 0x00000401
#define MSR_IA32_MC0_ADDR 0x00000402
Expand Down
13 changes: 7 additions & 6 deletions trunk/tools/power/x86/turbostat/turbostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,7 @@ void print_verbose_header(void)

get_msr(0, MSR_NHM_PLATFORM_INFO, &msr);

if (verbose)
fprintf(stderr, "cpu0: MSR_NHM_PLATFORM_INFO: 0x%08llx\n", msr);
fprintf(stderr, "cpu0: MSR_NHM_PLATFORM_INFO: 0x%08llx\n", msr);

ratio = (msr >> 40) & 0xFF;
fprintf(stderr, "%d * %.0f = %.0f MHz max efficiency\n",
Expand All @@ -919,13 +918,16 @@ void print_verbose_header(void)
fprintf(stderr, "%d * %.0f = %.0f MHz TSC frequency\n",
ratio, bclk, ratio * bclk);

get_msr(0, MSR_IA32_POWER_CTL, &msr);
fprintf(stderr, "cpu0: MSR_IA32_POWER_CTL: 0x%08llx (C1E: %sabled)\n",
msr, msr & 0x2 ? "EN" : "DIS");

if (!do_ivt_turbo_ratio_limit)
goto print_nhm_turbo_ratio_limits;

get_msr(0, MSR_IVT_TURBO_RATIO_LIMIT, &msr);

if (verbose)
fprintf(stderr, "cpu0: MSR_IVT_TURBO_RATIO_LIMIT: 0x%08llx\n", msr);
fprintf(stderr, "cpu0: MSR_IVT_TURBO_RATIO_LIMIT: 0x%08llx\n", msr);

ratio = (msr >> 56) & 0xFF;
if (ratio)
Expand Down Expand Up @@ -1016,8 +1018,7 @@ void print_verbose_header(void)

get_msr(0, MSR_NHM_TURBO_RATIO_LIMIT, &msr);

if (verbose)
fprintf(stderr, "cpu0: MSR_NHM_TURBO_RATIO_LIMIT: 0x%08llx\n", msr);
fprintf(stderr, "cpu0: MSR_NHM_TURBO_RATIO_LIMIT: 0x%08llx\n", msr);

ratio = (msr >> 56) & 0xFF;
if (ratio)
Expand Down

0 comments on commit 97295d9

Please sign in to comment.