]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Spinlock initializer cleanup
authorThomas Gleixner <tglx@linutronix.de>
Sun, 29 Apr 2007 16:10:39 +0000 (16:10 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 30 Apr 2007 01:02:06 +0000 (11:02 +1000)
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>
arch/powerpc/kernel/irq.c
arch/powerpc/oprofile/op_model_cell.c
arch/powerpc/platforms/cell/spu_base.c
arch/powerpc/platforms/ps3/htab.c

index 1009308268505753fa506eba009aac6d5b92735a..6c83fe229e6089f6c5221d72f84f342968f7eeac 100644 (file)
@@ -394,7 +394,7 @@ EXPORT_SYMBOL(do_softirq);
 #ifdef CONFIG_PPC_MERGE
 
 static LIST_HEAD(irq_hosts);
-static spinlock_t irq_big_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(irq_big_lock);
 static DEFINE_PER_CPU(unsigned int, irq_radix_reader);
 static unsigned int irq_radix_writer;
 struct irq_map_entry irq_map[NR_IRQS];
index fb999e3e9f218c382c95e9ae2b6f1ad678d987e4..626b29f38304e3c8339e61b52ddb619a5c5dd0f5 100644 (file)
@@ -131,7 +131,7 @@ static int pm_rtas_token;
 static u32 reset_value[NR_PHYS_CTRS];
 static int num_counters;
 static int oprofile_running;
-static spinlock_t virt_cntr_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(virt_cntr_lock);
 
 static u32 ctr_enabled;
 
index 8086eb1ed60d95e85ab47d5e17aca84854855e7d..fec51525252e2dfba33d8bb0c860bbbc0630d974 100644 (file)
@@ -43,7 +43,7 @@ const struct spu_priv1_ops *spu_priv1_ops;
 static struct list_head spu_list[MAX_NUMNODES];
 static LIST_HEAD(spu_full_list);
 static DEFINE_MUTEX(spu_mutex);
-static spinlock_t spu_list_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(spu_list_lock);
 
 EXPORT_SYMBOL_GPL(spu_priv1_ops);
 
index e12e59fea13a5a8a94517f580c3c1d5e5041d37d..ea60c451cf87f65e02c04284f9682f2642071bf0 100644 (file)
@@ -39,7 +39,7 @@ static unsigned long htab_addr;
 static unsigned char *bolttab;
 static unsigned char *inusetab;
 
-static spinlock_t ps3_bolttab_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(ps3_bolttab_lock);
 
 #define debug_dump_hpte(_a, _b, _c, _d, _e, _f, _g) \
        _debug_dump_hpte(_a, _b, _c, _d, _e, _f, _g, __func__, __LINE__)