Skip to contentSkip to conversation

consolidate spin_lock/unlock waiting with spin_unlock_wait

PATCH New Nicholas Mc Guire 1 participant 1 message Dec 16, 2013 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 consolidate spin_lock/unlock waiting with spin_unlock_wait

blackfin BF561:
consolidate spin_lock/unlock waiting with spin_unlock_wait()

config: defconfig -> changed processor to BF561
toolchain: blackfin-toolchain-elf-gcc-4.1-09r1-10

Builds smp.o without warnings.
No runtime check (no hardware available)

CC Philippe Gerum <[email protected]>
CC Mike Frysinger <[email protected]>
---
 arch/blackfin/mach-bf561/smp.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/blackfin/mach-bf561/smp.c +1 -2
index 11789be..463d839 100644
@@ -69,8 +69,7 @@ void platform_secondary_init(unsigned int cpu)
 	SSYNC();
 
 	/* We are done with local CPU inits, unblock the boot CPU. */
-	spin_lock(&boot_lock);
-	spin_unlock(&boot_lock);
+	spin_unlock_wait(&boot_lock);
 }
 
 int platform_boot_secondary(unsigned int cpu, struct task_struct *idle)
Signature · 1 line
1.7.2.5