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>
This commit is contained in:
Elyes HAOUAS 2019-10-20 09:22:42 +02:00 committed by Nico Huber
parent 2384682565
commit b7e8505d96
2 changed files with 0 additions and 2 deletions

View File

@ -220,7 +220,6 @@ void set_power_limits(u8 power_limit_1_time)
/* Use nominal TDP values for CPUs with configurable TDP */ /* Use nominal TDP values for CPUs with configurable TDP */
if (cpu_config_tdp_levels()) { if (cpu_config_tdp_levels()) {
msr = rdmsr(MSR_CONFIG_TDP_NOMINAL);
limit.hi = 0; limit.hi = 0;
limit.lo = cpu_get_tdp_nominal_ratio(); limit.lo = cpu_get_tdp_nominal_ratio();
wrmsr(MSR_TURBO_ACTIVATION_RATIO, limit); wrmsr(MSR_TURBO_ACTIVATION_RATIO, limit);

View File

@ -231,7 +231,6 @@ void set_power_limits(u8 power_limit_1_time)
/* Use nominal TDP values for CPUs with configurable TDP */ /* Use nominal TDP values for CPUs with configurable TDP */
if (cpu_config_tdp_levels()) { if (cpu_config_tdp_levels()) {
msr = rdmsr(MSR_CONFIG_TDP_NOMINAL);
limit.hi = 0; limit.hi = 0;
limit.lo = cpu_get_tdp_nominal_ratio(); limit.lo = cpu_get_tdp_nominal_ratio();
wrmsr(MSR_TURBO_ACTIVATION_RATIO, limit); wrmsr(MSR_TURBO_ACTIVATION_RATIO, limit);