diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-04-29 12:10:39 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-29 21:02:06 -0400 |
commit | 057b184a007376562e905aa39f1ba352fb8d78b1 (patch) | |
tree | f7cd89d7ac5bbcab57ecfa097004c030565718c7 /arch/powerpc/kernel | |
parent | f139efedb8d34904cf8ea30b174c3ee57204d114 (diff) |
[POWERPC] Spinlock initializer cleanup
Use DEFINE_SPINLOCK instead of initializing spinlocks to
SPIN_LOCK_UNLOCKED, since DEFINE_SPINLOCK is better for lockdep.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 100930826850..6c83fe229e60 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
@@ -394,7 +394,7 @@ EXPORT_SYMBOL(do_softirq); | |||
394 | #ifdef CONFIG_PPC_MERGE | 394 | #ifdef CONFIG_PPC_MERGE |
395 | 395 | ||
396 | static LIST_HEAD(irq_hosts); | 396 | static LIST_HEAD(irq_hosts); |
397 | static spinlock_t irq_big_lock = SPIN_LOCK_UNLOCKED; | 397 | static DEFINE_SPINLOCK(irq_big_lock); |
398 | static DEFINE_PER_CPU(unsigned int, irq_radix_reader); | 398 | static DEFINE_PER_CPU(unsigned int, irq_radix_reader); |
399 | static unsigned int irq_radix_writer; | 399 | static unsigned int irq_radix_writer; |
400 | struct irq_map_entry irq_map[NR_IRQS]; | 400 | struct irq_map_entry irq_map[NR_IRQS]; |