vserver 1.9.5.x5
[linux-2.6.git] / arch / sparc / kernel / sun4m_smp.c
index 100433e..8e10d95 100644 (file)
@@ -121,7 +121,6 @@ void __init smp4m_callin(void)
        local_irq_enable();
 }
 
-extern int cpu_idle(void *unused);
 extern void init_IRQ(void);
 extern void cpu_panic(void);
 
@@ -322,7 +321,7 @@ static struct smp_funcall {
        unsigned long processors_out[NR_CPUS]; /* Set when ipi exited. */
 } ccall_info;
 
-static spinlock_t cross_call_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(cross_call_lock);
 
 /* Cross calls must be serialized, at least currently. */
 void smp4m_cross_call(smpfunc_t func, unsigned long arg1, unsigned long arg2,