diff options
author | Bin Meng | 2015-06-17 11:15:37 +0800 |
---|---|---|
committer | Simon Glass | 2015-07-14 18:03:16 -0600 |
commit | 61788e468ebe4a7b8c852ab4e761e084a7975a93 (patch) | |
tree | 8dc86502e078aca895962820d8fe62b6b82f8f71 /arch/x86/cpu/cpu.c | |
parent | 6e6f4ce4f82501e35301322872152fe28846d743 (diff) |
x86: Move lapic_setup() call into init_bsp()
Currently lapic_setup() is called before calling mp_init(), which
then calls init_bsp() where it calls enable_lapic(), which was
already enabled in lapic_setup(). Hence move lapic_setup() call
into init_bsp() to avoid the duplication.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/cpu.c')
-rw-r--r-- | arch/x86/cpu/cpu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c index a6e88cfe19b..d108ee5c4e2 100644 --- a/arch/x86/cpu/cpu.c +++ b/arch/x86/cpu/cpu.c @@ -640,8 +640,6 @@ static int x86_mp_init(void) { struct mp_params mp_params; - lapic_setup(); - mp_params.parallel_microcode_load = 0, mp_params.flight_plan = &mp_steps[0]; mp_params.num_records = ARRAY_SIZE(mp_steps); |