From d26e1cf4849db9c0c8585e17909dd5fcca1977c0 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Mon, 11 Jan 2021 13:46:17 +0100 Subject: cpu/intel/*init: Remove obsolete cache enable The caches have already been enabled during MP-init, so these function calls are redundant. Remove them. Change-Id: Ia9be1a3388d8e7c73c35a1c68b3dd5bc488658c2 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/49383 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/cpu/intel/model_1067x/model_1067x_init.c | 3 --- src/cpu/intel/model_106cx/model_106cx_init.c | 3 --- src/cpu/intel/model_2065x/model_2065x_init.c | 3 --- src/cpu/intel/model_206ax/model_206ax_init.c | 3 --- 4 files changed, 12 deletions(-) (limited to 'src') diff --git a/src/cpu/intel/model_1067x/model_1067x_init.c b/src/cpu/intel/model_1067x/model_1067x_init.c index c130894853..3e4de1fa31 100644 --- a/src/cpu/intel/model_1067x/model_1067x_init.c +++ b/src/cpu/intel/model_1067x/model_1067x_init.c @@ -264,9 +264,6 @@ static void model_1067x_init(struct device *cpu) /* Test for TM2 only if EIST is available. */ const char tm2 = eist && (cpuid1.ecx & (1 << 8)); - /* Turn on caching if we haven't already */ - x86_enable_cache(); - /* Print processor name */ fill_processor_name(processor_name); printk(BIOS_INFO, "CPU: %s.\n", processor_name); diff --git a/src/cpu/intel/model_106cx/model_106cx_init.c b/src/cpu/intel/model_106cx/model_106cx_init.c index 8c462f1874..278d8dea81 100644 --- a/src/cpu/intel/model_106cx/model_106cx_init.c +++ b/src/cpu/intel/model_106cx/model_106cx_init.c @@ -63,9 +63,6 @@ static void model_106cx_init(struct device *cpu) { char processor_name[49]; - /* Turn on caching if we haven't already */ - x86_enable_cache(); - /* Print processor name */ fill_processor_name(processor_name); printk(BIOS_INFO, "CPU: %s.\n", processor_name); diff --git a/src/cpu/intel/model_2065x/model_2065x_init.c b/src/cpu/intel/model_2065x/model_2065x_init.c index 88e42a5051..f1a2150d71 100644 --- a/src/cpu/intel/model_2065x/model_2065x_init.c +++ b/src/cpu/intel/model_2065x/model_2065x_init.c @@ -185,9 +185,6 @@ static void model_2065x_init(struct device *cpu) { char processor_name[49]; - /* Turn on caching if we haven't already */ - x86_enable_cache(); - /* Clear out pending MCEs */ configure_mca(); diff --git a/src/cpu/intel/model_206ax/model_206ax_init.c b/src/cpu/intel/model_206ax/model_206ax_init.c index b08a86fba2..31099fd486 100644 --- a/src/cpu/intel/model_206ax/model_206ax_init.c +++ b/src/cpu/intel/model_206ax/model_206ax_init.c @@ -425,9 +425,6 @@ static void model_206ax_report(void) static void model_206ax_init(struct device *cpu) { - /* Turn on caching if we haven't already */ - x86_enable_cache(); - /* Clear out pending MCEs */ configure_mca(); -- cgit v1.2.3