summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/skylake/cpu.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-10-20 09:22:42 +0200
committerNico Huber <nico.h@gmx.de>2019-11-11 22:44:24 +0000
commitb7e8505d96236e73db2d0440f1a5889cdba18697 (patch)
tree52c865a83440fabcf332d9f4cf9a45a9cdde7536 /src/soc/intel/skylake/cpu.c
parent23846825650d59993d841f3a8d8d954ea06bba70 (diff)
downloadcoreboot-b7e8505d96236e73db2d0440f1a5889cdba18697.tar.gz
coreboot-b7e8505d96236e73db2d0440f1a5889cdba18697.tar.bz2
coreboot-b7e8505d96236e73db2d0440f1a5889cdba18697.zip
soc/{cannonlake,skylake}: Remove unused 'rdmsr(MSR_CONFIG_TDP_NOMINAL)'
MSR_CONFIG_TDP_NOMINAL is used by 'cpu_get_tdp_nominal_ratio' to return the TDP Nominal Ratio. Change-Id: I4c8df7a4100c185c1430d993f7618ed00fc556ff Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36164 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/intel/skylake/cpu.c')
-rw-r--r--src/soc/intel/skylake/cpu.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/soc/intel/skylake/cpu.c b/src/soc/intel/skylake/cpu.c
index 080dba0b13b4..7a45693ad78c 100644
--- a/src/soc/intel/skylake/cpu.c
+++ b/src/soc/intel/skylake/cpu.c
@@ -231,7 +231,6 @@ void set_power_limits(u8 power_limit_1_time)
/* Use nominal TDP values for CPUs with configurable TDP */
if (cpu_config_tdp_levels()) {
- msr = rdmsr(MSR_CONFIG_TDP_NOMINAL);
limit.hi = 0;
limit.lo = cpu_get_tdp_nominal_ratio();
wrmsr(MSR_TURBO_ACTIVATION_RATIO, limit);