Commit 100cf6f2 authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Rafael J. Wysocki

cpufreq: intel_pstate: Replace MSR_NHM_TURBO_RATIO_LIMIT

Replace MSR_NHM_TURBO_RATIO_LIMIT with MSR_TURBO_RATIO_LIMIT.
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5ec398e9
...@@ -973,7 +973,7 @@ static int core_get_turbo_pstate(void) ...@@ -973,7 +973,7 @@ static int core_get_turbo_pstate(void)
u64 value; u64 value;
int nont, ret; int nont, ret;
rdmsrl(MSR_NHM_TURBO_RATIO_LIMIT, value); rdmsrl(MSR_TURBO_RATIO_LIMIT, value);
nont = core_get_max_pstate(); nont = core_get_max_pstate();
ret = (value) & 255; ret = (value) & 255;
if (ret <= nont) if (ret <= nont)
...@@ -1002,7 +1002,7 @@ static int knl_get_turbo_pstate(void) ...@@ -1002,7 +1002,7 @@ static int knl_get_turbo_pstate(void)
u64 value; u64 value;
int nont, ret; int nont, ret;
rdmsrl(MSR_NHM_TURBO_RATIO_LIMIT, value); rdmsrl(MSR_TURBO_RATIO_LIMIT, value);
nont = core_get_max_pstate(); nont = core_get_max_pstate();
ret = (((value) >> 8) & 0xFF); ret = (((value) >> 8) & 0xFF);
if (ret <= nont) if (ret <= nont)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment