summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-07-07 21:52:44 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-07-09 23:44:04 +0000
commitdc4a8d026058b7c4ff5193c81bd90fe0b3fd2271 (patch)
treea225324bf6a6be591161d3b2bc22ee2c9c058697
parent8a132065492bde4625675e572b39bfcbf09cdf29 (diff)
downloadcoreboot-dc4a8d026058b7c4ff5193c81bd90fe0b3fd2271.tar.xz
cpu/intel/model_2065x/model_2065x_init.c: Drop dead code
This code is not even being build-tested. Drop it before it grows moss. Change-Id: I16fe12368ce7ffe2fd4d2a5580dd92c19a695848 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43208 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner
-rw-r--r--src/cpu/intel/model_2065x/model_2065x_init.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/cpu/intel/model_2065x/model_2065x_init.c b/src/cpu/intel/model_2065x/model_2065x_init.c
index 6f41ac5c72..3208e10849 100644
--- a/src/cpu/intel/model_2065x/model_2065x_init.c
+++ b/src/cpu/intel/model_2065x/model_2065x_init.c
@@ -147,13 +147,6 @@ static void configure_misc(void)
msr.lo = 0;
msr.hi = 0;
wrmsr(IA32_THERM_INTERRUPT, msr);
-
-#ifdef DISABLED
- /* Enable package critical interrupt only */
- msr.lo = 1 << 4;
- msr.hi = 0;
- wrmsr(IA32_PACKAGE_THERM_INTERRUPT, msr);
-#endif
}
static void enable_lapic_tpr(void)
@@ -188,22 +181,6 @@ static void set_max_ratio(void)
((perf_ctl.lo >> 8) & 0xff) * IRONLAKE_BCLK);
}
-static void set_energy_perf_bias(u8 policy)
-{
-#ifdef DISABLED
- msr_t msr;
-
- /* Energy Policy is bits 3:0 */
- msr = rdmsr(IA32_ENERGY_PERF_BIAS);
- msr.lo &= ~0xf;
- msr.lo |= policy & 0xf;
- wrmsr(IA32_ENERGY_PERF_BIAS, msr);
-
- printk(BIOS_DEBUG, "model_x06ax: energy policy set to %u\n",
- policy);
-#endif
-}
-
static void configure_mca(void)
{
msr_t msr;
@@ -247,9 +224,6 @@ static void model_2065x_init(struct device *cpu)
/* Thermal throttle activation offset */
configure_thermal_target();
- /* Set energy policy */
- set_energy_perf_bias(ENERGY_POLICY_NORMAL);
-
/* Set Max Ratio */
set_max_ratio();