From da09be6328505ac4473aff48b8ef27b9986bfa22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 10 Jul 2012 10:17:32 +0300 Subject: [PATCH] Drop start_cpu_lock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Function alloc_find_dev() is serialized. Change-Id: I40d27d1adca629f1f7ce2f09c1cb2fd04b76eb9a Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/1198 Tested-by: build bot (Jenkins) Reviewed-by: Sven Schnelle --- src/arch/x86/lib/cpu.c | 10 ---------- 1 file changed, 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 */