Commit 00787a18 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] Lock initializer cleanup: M32R

Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 853151f2
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
* Structure and data for smp_call_function(). This is designed to minimise * Structure and data for smp_call_function(). This is designed to minimise
* static memory requirements. It also looks cleaner. * static memory requirements. It also looks cleaner.
*/ */
static spinlock_t call_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(call_lock);
struct call_data_struct { struct call_data_struct {
void (*func) (void *info); void (*func) (void *info);
...@@ -53,7 +53,7 @@ static struct call_data_struct *call_data; ...@@ -53,7 +53,7 @@ static struct call_data_struct *call_data;
/* /*
* For flush_cache_all() * For flush_cache_all()
*/ */
static spinlock_t flushcache_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(flushcache_lock);
static volatile unsigned long flushcache_cpumask = 0; static volatile unsigned long flushcache_cpumask = 0;
/* /*
...@@ -63,7 +63,7 @@ static volatile cpumask_t flush_cpumask; ...@@ -63,7 +63,7 @@ static volatile cpumask_t flush_cpumask;
static struct mm_struct *flush_mm; static struct mm_struct *flush_mm;
static struct vm_area_struct *flush_vma; static struct vm_area_struct *flush_vma;
static volatile unsigned long flush_va; static volatile unsigned long flush_va;
static spinlock_t tlbstate_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(tlbstate_lock);
#define FLUSH_ALL 0xffffffff #define FLUSH_ALL 0xffffffff
DECLARE_PER_CPU(int, prof_multiplier); DECLARE_PER_CPU(int, prof_multiplier);
......
...@@ -48,7 +48,7 @@ asmlinkage int sys_tas(int *addr) ...@@ -48,7 +48,7 @@ asmlinkage int sys_tas(int *addr)
#else /* CONFIG_SMP */ #else /* CONFIG_SMP */
#include <linux/spinlock.h> #include <linux/spinlock.h>
static spinlock_t tas_lock = SPIN_LOCK_UNLOCKED; static DEFINE_SPINLOCK(tas_lock);
asmlinkage int sys_tas(int *addr) asmlinkage int sys_tas(int *addr)
{ {
......
...@@ -223,7 +223,7 @@ static void show_registers(struct pt_regs *regs) ...@@ -223,7 +223,7 @@ static void show_registers(struct pt_regs *regs)
printk("\n"); printk("\n");
} }
spinlock_t die_lock = SPIN_LOCK_UNLOCKED; DEFINE_SPINLOCK(die_lock);
void die(const char * str, struct pt_regs * regs, long err) void die(const char * str, struct pt_regs * regs, long err)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment