Skip to content

Commit bc841e2

Browse files
committed
Merge branch 'pm-cpu'
* pm-cpu: x86: remove duplicate turbo ratio limit MSRs tools/power turbostat: Replace MSR_NHM_TURBO_RATIO_LIMIT cpufreq: intel_pstate: Replace MSR_NHM_TURBO_RATIO_LIMIT
2 parents e717a62 + a0c9b8c commit bc841e2

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

arch/x86/include/asm/msr-index.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@
6464

6565
#define MSR_OFFCORE_RSP_0 0x000001a6
6666
#define MSR_OFFCORE_RSP_1 0x000001a7
67-
#define MSR_NHM_TURBO_RATIO_LIMIT 0x000001ad
68-
#define MSR_IVT_TURBO_RATIO_LIMIT 0x000001ae
6967
#define MSR_TURBO_RATIO_LIMIT 0x000001ad
7068
#define MSR_TURBO_RATIO_LIMIT1 0x000001ae
7169
#define MSR_TURBO_RATIO_LIMIT2 0x000001af

drivers/cpufreq/intel_pstate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ static int core_get_turbo_pstate(void)
972972
u64 value;
973973
int nont, ret;
974974

975-
rdmsrl(MSR_NHM_TURBO_RATIO_LIMIT, value);
975+
rdmsrl(MSR_TURBO_RATIO_LIMIT, value);
976976
nont = core_get_max_pstate();
977977
ret = (value) & 255;
978978
if (ret <= nont)
@@ -1001,7 +1001,7 @@ static int knl_get_turbo_pstate(void)
10011001
u64 value;
10021002
int nont, ret;
10031003

1004-
rdmsrl(MSR_NHM_TURBO_RATIO_LIMIT, value);
1004+
rdmsrl(MSR_TURBO_RATIO_LIMIT, value);
10051005
nont = core_get_max_pstate();
10061006
ret = (((value) >> 8) & 0xFF);
10071007
if (ret <= nont)

tools/power/x86/turbostat/turbostat.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ cpu0: MSR_NHM_PLATFORM_INFO: 0x80838f3012300
123123
35 * 100 = 3500 MHz TSC frequency
124124
cpu0: MSR_IA32_POWER_CTL: 0x0004005d (C1E auto-promotion: DISabled)
125125
cpu0: MSR_NHM_SNB_PKG_CST_CFG_CTL: 0x1e000400 (UNdemote-C3, UNdemote-C1, demote-C3, demote-C1, UNlocked: pkg-cstate-limit=0: pc0)
126-
cpu0: MSR_NHM_TURBO_RATIO_LIMIT: 0x25262727
126+
cpu0: MSR_TURBO_RATIO_LIMIT: 0x25262727
127127
37 * 100 = 3700 MHz max turbo 4 active cores
128128
38 * 100 = 3800 MHz max turbo 3 active cores
129129
39 * 100 = 3900 MHz max turbo 2 active cores

tools/power/x86/turbostat/turbostat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ dump_knl_turbo_ratio_limits(void)
14801480
unsigned int cores[buckets_no];
14811481
unsigned int ratio[buckets_no];
14821482

1483-
get_msr(base_cpu, MSR_NHM_TURBO_RATIO_LIMIT, &msr);
1483+
get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT, &msr);
14841484

14851485
fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT: 0x%08llx\n",
14861486
base_cpu, msr);

0 commit comments

Comments
 (0)