diff options
author | Ingo Molnar <mingo@elte.hu> | 2005-09-09 16:10:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 17:03:48 -0400 |
commit | a9f6a0dd54efea2a5d57a27e6c232f9197c25154 (patch) | |
tree | 1df64545ed43cd23d32201b2f2077c9325dc6ba0 /arch/mips/kernel | |
parent | 8d06afab73a75f40ae2864e6c296356bab1ab473 (diff) |
[PATCH] more SPIN_LOCK_UNLOCKED -> DEFINE_SPINLOCK conversions
This converts the final 20 DEFINE_SPINLOCK holdouts. (another 580 places
are already using DEFINE_SPINLOCK). Build tested on x86.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/genrtc.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/i8259.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/genrtc.c b/arch/mips/kernel/genrtc.c index 288bf51ad4ec..71416e7bbbaa 100644 --- a/arch/mips/kernel/genrtc.c +++ b/arch/mips/kernel/genrtc.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include <asm/rtc.h> | 14 | #include <asm/rtc.h> |
15 | #include <asm/time.h> | 15 | #include <asm/time.h> |
16 | 16 | ||
17 | static spinlock_t mips_rtc_lock = SPIN_LOCK_UNLOCKED; | 17 | static DEFINE_SPINLOCK(mips_rtc_lock); |
18 | 18 | ||
19 | unsigned int get_rtc_time(struct rtc_time *time) | 19 | unsigned int get_rtc_time(struct rtc_time *time) |
20 | { | 20 | { |
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c index 7eec7568bfea..447759201d1d 100644 --- a/arch/mips/kernel/i8259.c +++ b/arch/mips/kernel/i8259.c | |||
@@ -31,7 +31,7 @@ void disable_8259A_irq(unsigned int irq); | |||
31 | * moves to arch independent land | 31 | * moves to arch independent land |
32 | */ | 32 | */ |
33 | 33 | ||
34 | spinlock_t i8259A_lock = SPIN_LOCK_UNLOCKED; | 34 | spinlock_t DEFINE_SPINLOCK(i8259A_lock); |
35 | 35 | ||
36 | static void end_8259A_irq (unsigned int irq) | 36 | static void end_8259A_irq (unsigned int irq) |
37 | { | 37 | { |