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 | |
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')
-rw-r--r-- | arch/powerpc/kernel/irq.c | 2 | ||||
-rw-r--r-- | arch/powerpc/oprofile/op_model_cell.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spu_base.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/ps3/htab.c | 2 |
4 files changed, 4 insertions, 4 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]; |
diff --git a/arch/powerpc/oprofile/op_model_cell.c b/arch/powerpc/oprofile/op_model_cell.c index fb999e3e9f21..626b29f38304 100644 --- a/arch/powerpc/oprofile/op_model_cell.c +++ b/arch/powerpc/oprofile/op_model_cell.c | |||
@@ -131,7 +131,7 @@ static int pm_rtas_token; | |||
131 | static u32 reset_value[NR_PHYS_CTRS]; | 131 | static u32 reset_value[NR_PHYS_CTRS]; |
132 | static int num_counters; | 132 | static int num_counters; |
133 | static int oprofile_running; | 133 | static int oprofile_running; |
134 | static spinlock_t virt_cntr_lock = SPIN_LOCK_UNLOCKED; | 134 | static DEFINE_SPINLOCK(virt_cntr_lock); |
135 | 135 | ||
136 | static u32 ctr_enabled; | 136 | static u32 ctr_enabled; |
137 | 137 | ||
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c index 8086eb1ed60d..fec51525252e 100644 --- a/arch/powerpc/platforms/cell/spu_base.c +++ b/arch/powerpc/platforms/cell/spu_base.c | |||
@@ -43,7 +43,7 @@ const struct spu_priv1_ops *spu_priv1_ops; | |||
43 | static struct list_head spu_list[MAX_NUMNODES]; | 43 | static struct list_head spu_list[MAX_NUMNODES]; |
44 | static LIST_HEAD(spu_full_list); | 44 | static LIST_HEAD(spu_full_list); |
45 | static DEFINE_MUTEX(spu_mutex); | 45 | static DEFINE_MUTEX(spu_mutex); |
46 | static spinlock_t spu_list_lock = SPIN_LOCK_UNLOCKED; | 46 | static DEFINE_SPINLOCK(spu_list_lock); |
47 | 47 | ||
48 | EXPORT_SYMBOL_GPL(spu_priv1_ops); | 48 | EXPORT_SYMBOL_GPL(spu_priv1_ops); |
49 | 49 | ||
diff --git a/arch/powerpc/platforms/ps3/htab.c b/arch/powerpc/platforms/ps3/htab.c index e12e59fea13a..ea60c451cf87 100644 --- a/arch/powerpc/platforms/ps3/htab.c +++ b/arch/powerpc/platforms/ps3/htab.c | |||
@@ -39,7 +39,7 @@ static unsigned long htab_addr; | |||
39 | static unsigned char *bolttab; | 39 | static unsigned char *bolttab; |
40 | static unsigned char *inusetab; | 40 | static unsigned char *inusetab; |
41 | 41 | ||
42 | static spinlock_t ps3_bolttab_lock = SPIN_LOCK_UNLOCKED; | 42 | static DEFINE_SPINLOCK(ps3_bolttab_lock); |
43 | 43 | ||
44 | #define debug_dump_hpte(_a, _b, _c, _d, _e, _f, _g) \ | 44 | #define debug_dump_hpte(_a, _b, _c, _d, _e, _f, _g) \ |
45 | _debug_dump_hpte(_a, _b, _c, _d, _e, _f, _g, __func__, __LINE__) | 45 | _debug_dump_hpte(_a, _b, _c, _d, _e, _f, _g, __func__, __LINE__) |