diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2012-07-10 10:17:32 +0300 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-07-10 19:51:47 +0200 |
commit | da09be6328505ac4473aff48b8ef27b9986bfa22 (patch) | |
tree | 52317737183024ce5ee6cab4177ad56e1bc4e4b0 /src/arch/x86 | |
parent | 54c07a675bada869cbe423a348af0dd041dcf7c3 (diff) |
Drop start_cpu_lock
Function alloc_find_dev() is serialized.
Change-Id: I40d27d1adca629f1f7ce2f09c1cb2fd04b76eb9a
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/1198
Tested-by: build bot (Jenkins)
Reviewed-by: Sven Schnelle <svens@stackframe.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/lib/cpu.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/arch/x86/lib/cpu.c b/src/arch/x86/lib/cpu.c index 2d64be95ba..5214abeb7d 100644 --- a/src/arch/x86/lib/cpu.c +++ b/src/arch/x86/lib/cpu.c @@ -235,10 +235,6 @@ static void set_cpu_ops(struct device *cpu) cpu->ops = driver ? driver->ops : NULL; } -#if CONFIG_SMP -static spinlock_t start_cpu_lock = SPIN_LOCK_UNLOCKED; -#endif - void cpu_initialize(struct bus *cpu_bus, int index) { /* Because we busy wait at the printk spinlock. @@ -255,13 +251,7 @@ void cpu_initialize(struct bus *cpu_bus, int index) cpu_path.apic.apic_id = id; cpu_path.apic.index = index; -#if CONFIG_SMP - spin_lock(&start_cpu_lock); -#endif cpu = alloc_find_dev(cpu_bus, &cpu_path); -#if CONFIG_SMP - spin_unlock(&start_cpu_lock); -#endif printk(BIOS_DEBUG, "Initializing CPU #%d\n", id); /* Find what type of cpu we are dealing with */ |