SPIN_LOCK_UNLOCKED cleanup in arch/powerpc
PATCH 1/1 SPIN_LOCK_UNLOCKED cleanup in arch/powerpc
SPIN_LOCK_UNLOCKED cleanup,use DEFINE_SPINLOCK or__SPIN_LOCK_UNLOCKED where ever appropriate.
Signed-off-by Milind Arun Choudhary <[email protected]>
--
kernel/irq.c | 2 +- kernel/rtas.c | 2 +- oprofile/op_model_cell.c | 2 +- platforms/cell/spu_base.c | 2 +- platforms/ps3/htab.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
arch/powerpc/kernel/irq.c +1 -1
@@ -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 ];
arch/powerpc/kernel/rtas.c +1 -1
@@ -36,7 +36,7 @@#include <asm/syscalls.h> struct rtas_t rtas = { - .lock =SPIN_LOCK_UNLOCKED + .lock =__SPIN_LOCK_UNLOCKED (rtas.lock) };EXPORT_SYMBOL (rtas);
arch/powerpc/oprofile/op_model_cell.c +1 -1
@@ -130,7 +130,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;
arch/powerpc/platforms/cell/spu_base.c +1 -1
@@ -41,7 +41,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);
arch/powerpc/platforms/ps3/htab.c +1 -1
@@ -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__)
Signature · 1 line
Milind Arun Choudhary