aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-09-26 22:31:32 -0400
committerPaul Mundt <lethal@linux-sh.org>2006-09-26 22:31:32 -0400
commit765ae317ce030217af556dc46bec238dab15091e (patch)
treeb2460562ac2d6b2efe9138f3cf6c66b1cab308fa /arch
parenta252710fc5b63b24934905ca47ecf661702d7f00 (diff)
sh: Fixup some uninitialized spinlocks.
Fix use of uninitialized spinlocks, caught with spinlock debugging.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/semaphore.c2
-rw-r--r--arch/sh/kernel/traps.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/semaphore.c b/arch/sh/kernel/semaphore.c
index a3c24dcbf01d..184119eeae56 100644
--- a/arch/sh/kernel/semaphore.c
+++ b/arch/sh/kernel/semaphore.c
@@ -14,7 +14,7 @@
14#include <asm/semaphore.h> 14#include <asm/semaphore.h>
15#include <asm/semaphore-helper.h> 15#include <asm/semaphore-helper.h>
16 16
17spinlock_t semaphore_wake_lock; 17DEFINE_SPINLOCK(semaphore_wake_lock);
18 18
19/* 19/*
20 * Semaphores are implemented using a two-way counter: 20 * Semaphores are implemented using a two-way counter:
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c
index d9db1180f770..21bef1b5f991 100644
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -86,7 +86,7 @@ asmlinkage void do_##name(unsigned long r4, unsigned long r5, \
86#define VMALLOC_OFFSET (8*1024*1024) 86#define VMALLOC_OFFSET (8*1024*1024)
87#define MODULE_RANGE (8*1024*1024) 87#define MODULE_RANGE (8*1024*1024)
88 88
89spinlock_t die_lock; 89DEFINE_SPINLOCK(die_lock);
90 90
91void die(const char * str, struct pt_regs * regs, long err) 91void die(const char * str, struct pt_regs * regs, long err)
92{ 92{