Commit 2bd00736 authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Yosemite: Convert SMP startup lock to arch spinlock.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 1a73f047
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#define LAUNCHSTACK_SIZE 256 #define LAUNCHSTACK_SIZE 256
static __cpuinitdata DEFINE_SPINLOCK(launch_lock); static __cpuinitdata arch_spinlock_t launch_lock = __ARCH_SPIN_LOCK_UNLOCKED;
static unsigned long secondary_sp __cpuinitdata; static unsigned long secondary_sp __cpuinitdata;
static unsigned long secondary_gp __cpuinitdata; static unsigned long secondary_gp __cpuinitdata;
...@@ -20,7 +20,7 @@ static void __init prom_smp_bootstrap(void) ...@@ -20,7 +20,7 @@ static void __init prom_smp_bootstrap(void)
{ {
local_irq_disable(); local_irq_disable();
while (spin_is_locked(&launch_lock)); while (arch_spin_is_locked(&launch_lock));
__asm__ __volatile__( __asm__ __volatile__(
" move $sp, %0 \n" " move $sp, %0 \n"
...@@ -37,7 +37,7 @@ static void __init prom_smp_bootstrap(void) ...@@ -37,7 +37,7 @@ static void __init prom_smp_bootstrap(void)
*/ */
void __init prom_grab_secondary(void) void __init prom_grab_secondary(void)
{ {
spin_lock(&launch_lock); arch_spin_lock(&launch_lock);
pmon_cpustart(1, &prom_smp_bootstrap, pmon_cpustart(1, &prom_smp_bootstrap,
launchstack + LAUNCHSTACK_SIZE, 0); launchstack + LAUNCHSTACK_SIZE, 0);
...@@ -138,7 +138,7 @@ static void __cpuinit yos_boot_secondary(int cpu, struct task_struct *idle) ...@@ -138,7 +138,7 @@ static void __cpuinit yos_boot_secondary(int cpu, struct task_struct *idle)
secondary_sp = sp; secondary_sp = sp;
secondary_gp = gp; secondary_gp = gp;
spin_unlock(&launch_lock); arch_spin_unlock(&launch_lock);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment