sh: Fixup some uninitialized spinlocks.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 27 Sep 2006 02:31:32 +0000 (11:31 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 27 Sep 2006 02:31:32 +0000 (11:31 +0900)
Fix use of uninitialized spinlocks, caught with spinlock debugging..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/semaphore.c
arch/sh/kernel/traps.c

index a3c24dcbf01ddb947adac9bbd0e23da516a29a30..184119eeae56add25f6f450e1a436f702637b45b 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/semaphore.h>
 #include <asm/semaphore-helper.h>
 
-spinlock_t semaphore_wake_lock;
+DEFINE_SPINLOCK(semaphore_wake_lock);
 
 /*
  * Semaphores are implemented using a two-way counter:
index d9db1180f770faa264b561a3f20c14e32d1b671b..21bef1b5f9918ecf53ae0705b1d934e23b8548f2 100644 (file)
@@ -86,7 +86,7 @@ asmlinkage void do_##name(unsigned long r4, unsigned long r5,         \
 #define VMALLOC_OFFSET (8*1024*1024)
 #define MODULE_RANGE (8*1024*1024)
 
-spinlock_t die_lock;
+DEFINE_SPINLOCK(die_lock);
 
 void die(const char * str, struct pt_regs * regs, long err)
 {