summaryrefslogtreecommitdiffstats
path: root/src/cpu/intel/model_f4x/model_f4x_init.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2018-04-10 15:16:48 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-01-23 14:47:53 +0000
commitc82950bf79285fa838b6fbaf019a5638316ba053 (patch)
tree3f344f1d85367986ee0e635b724d9e6ff3a23589 /src/cpu/intel/model_f4x/model_f4x_init.c
parentf26693283655eff7c31275621439f8416eeb3242 (diff)
downloadcoreboot-c82950bf79285fa838b6fbaf019a5638316ba053.tar.gz
coreboot-c82950bf79285fa838b6fbaf019a5638316ba053.tar.bz2
coreboot-c82950bf79285fa838b6fbaf019a5638316ba053.zip
nb/intel/x4x: Use parallel MP init
Use parallel MP init code to initialize all AP's. Also remove guards around CPU code where all platforms now use parallel MP init. This also removes the code required on lapic init path for model_6fx, model_1017x and model_f4x as all platforms now use the parallel MP code. Tested on Intel DG41WV, shaves off about 90ms on a quad core. Change-Id: Id5a2729f5bf6b525abad577e63d7953ae6640921 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/25601 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/intel/model_f4x/model_f4x_init.c')
-rw-r--r--src/cpu/intel/model_f4x/model_f4x_init.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/cpu/intel/model_f4x/model_f4x_init.c b/src/cpu/intel/model_f4x/model_f4x_init.c
index 1b3cfe96e17d..941bee1466b4 100644
--- a/src/cpu/intel/model_f4x/model_f4x_init.c
+++ b/src/cpu/intel/model_f4x/model_f4x_init.c
@@ -13,10 +13,7 @@
#include <device/device.h>
#include <cpu/cpu.h>
-#include <cpu/x86/mtrr.h>
#include <cpu/x86/lapic.h>
-#include <cpu/intel/microcode.h>
-#include <cpu/intel/hyperthreading.h>
#include <cpu/x86/cache.h>
static void model_f4x_init(struct device *cpu)
@@ -24,21 +21,8 @@ static void model_f4x_init(struct device *cpu)
/* Turn on caching if we haven't already */
x86_enable_cache();
- if (!IS_ENABLED(CONFIG_PARALLEL_MP) && !intel_ht_sibling()) {
- /* MTRRs are shared between threads */
- x86_setup_mtrrs();
- x86_mtrr_check();
-
- /* Update the microcode */
- intel_update_microcode_from_cbfs();
- }
-
/* Enable the local CPU APICs */
setup_lapic();
-
- /* Start up my CPU siblings */
- if (!IS_ENABLED(CONFIG_PARALLEL_MP))
- intel_sibling_init(cpu);
};
static struct device_operations cpu_dev_ops = {