diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-13 16:44:04 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-08-15 04:59:12 +0000 |
commit | b3267e002e798e90ca09b11e42ea8949dccde2e7 (patch) | |
tree | 853f4f80e6d993b9a29c55361782e23667ce8698 /src/cpu/intel | |
parent | 826f35421e190d3358a56deba8b582d18c264e8b (diff) |
cpu/intel: Replace bsp_init_and_start_aps()
Change-Id: I7176efdd1000789a093a1b4e243b4b150e6bb06f
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34864
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/intel')
-rw-r--r-- | src/cpu/intel/haswell/haswell.h | 2 | ||||
-rw-r--r-- | src/cpu/intel/haswell/haswell_init.c | 2 | ||||
-rw-r--r-- | src/cpu/intel/model_1067x/mp_init.c | 3 | ||||
-rw-r--r-- | src/cpu/intel/model_2065x/model_2065x_init.c | 2 | ||||
-rw-r--r-- | src/cpu/intel/model_206ax/model_206ax_init.c | 2 | ||||
-rw-r--r-- | src/cpu/intel/smm/gen1/smi.h | 2 |
6 files changed, 5 insertions, 8 deletions
diff --git a/src/cpu/intel/haswell/haswell.h b/src/cpu/intel/haswell/haswell.h index cfd9d45690..7b3a203415 100644 --- a/src/cpu/intel/haswell/haswell.h +++ b/src/cpu/intel/haswell/haswell.h @@ -161,8 +161,6 @@ void smm_info(uintptr_t *perm_smbase, size_t *perm_smsize, void smm_initialize(void); void smm_relocate(void); void smm_lock(void); -struct bus; -void bsp_init_and_start_aps(struct bus *cpu_bus); /* Determine if HyperThreading is disabled. The variable is not valid until * setup_ap_init() has been called. */ #endif diff --git a/src/cpu/intel/haswell/haswell_init.c b/src/cpu/intel/haswell/haswell_init.c index 95d719c2f1..0449235ba5 100644 --- a/src/cpu/intel/haswell/haswell_init.c +++ b/src/cpu/intel/haswell/haswell_init.c @@ -778,7 +778,7 @@ static const struct mp_ops mp_ops = { .post_mp_init = post_mp_init, }; -void bsp_init_and_start_aps(struct bus *cpu_bus) +void mp_init_cpus(struct bus *cpu_bus) { if (mp_init_with_smm(cpu_bus, &mp_ops)) printk(BIOS_ERR, "MP initialization failure.\n"); diff --git a/src/cpu/intel/model_1067x/mp_init.c b/src/cpu/intel/model_1067x/mp_init.c index ea2d83841f..73c9a4788e 100644 --- a/src/cpu/intel/model_1067x/mp_init.c +++ b/src/cpu/intel/model_1067x/mp_init.c @@ -21,6 +21,7 @@ #include <cpu/intel/microcode.h> #include <cpu/intel/smm/gen1/smi.h> #include <cpu/intel/common/common.h> +#include <device/device.h> /* Parallel MP initialization support. */ static const void *microcode_patch; @@ -110,7 +111,7 @@ static const struct mp_ops mp_ops = { .post_mp_init = post_mp_init, }; -void bsp_init_and_start_aps(struct bus *cpu_bus) +void mp_init_cpus(struct bus *cpu_bus) { microcode_patch = intel_microcode_find(); diff --git a/src/cpu/intel/model_2065x/model_2065x_init.c b/src/cpu/intel/model_2065x/model_2065x_init.c index 289d4471e6..2f10945c3b 100644 --- a/src/cpu/intel/model_2065x/model_2065x_init.c +++ b/src/cpu/intel/model_2065x/model_2065x_init.c @@ -334,7 +334,7 @@ static const struct mp_ops mp_ops = { .post_mp_init = post_mp_init, }; -void bsp_init_and_start_aps(struct bus *cpu_bus) +void mp_init_cpus(struct bus *cpu_bus) { if (mp_init_with_smm(cpu_bus, &mp_ops)) printk(BIOS_ERR, "MP initialization failure.\n"); diff --git a/src/cpu/intel/model_206ax/model_206ax_init.c b/src/cpu/intel/model_206ax/model_206ax_init.c index 80d85f3347..d3aa52cf5d 100644 --- a/src/cpu/intel/model_206ax/model_206ax_init.c +++ b/src/cpu/intel/model_206ax/model_206ax_init.c @@ -560,7 +560,7 @@ static const struct mp_ops mp_ops = { .post_mp_init = post_mp_init, }; -void bsp_init_and_start_aps(struct bus *cpu_bus) +void mp_init_cpus(struct bus *cpu_bus) { if (mp_init_with_smm(cpu_bus, &mp_ops)) printk(BIOS_ERR, "MP initialization failure.\n"); diff --git a/src/cpu/intel/smm/gen1/smi.h b/src/cpu/intel/smm/gen1/smi.h index 3d5149a430..6623bcc7cf 100644 --- a/src/cpu/intel/smm/gen1/smi.h +++ b/src/cpu/intel/smm/gen1/smi.h @@ -13,8 +13,6 @@ #include <device/device.h> -void bsp_init_and_start_aps(struct bus *cpu_bus); - /* These helpers are for performing SMM relocation. */ void southbridge_smm_init(void); u32 northbridge_get_tseg_base(void); |