Commit 9b3be57b authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] Lock initializer cleanup: SH

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 e0ae9de8
......@@ -23,7 +23,7 @@ struct voya_alloc_entry {
unsigned long len;
};
static spinlock_t voya_list_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(voya_list_lock);
static LIST_HEAD(voya_alloc_list);
#define OHCI_SRAM_START 0xb0000000
......
......@@ -17,7 +17,7 @@
#include <linux/list.h>
#include <asm/dma.h>
spinlock_t dma_spin_lock = SPIN_LOCK_UNLOCKED;
DEFINE_SPINLOCK(dma_spin_lock);
static LIST_HEAD(registered_dmac_list);
/*
......
......@@ -32,7 +32,7 @@
#include <asm/cpu/sq.h>
static LIST_HEAD(sq_mapping_list);
static spinlock_t sq_mapping_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(sq_mapping_lock);
/**
* sq_flush - Flush (prefetch) the store queue cache
......
......@@ -83,7 +83,7 @@
extern unsigned long wall_jiffies;
#define TICK_SIZE (tick_nsec / 1000)
spinlock_t tmu0_lock = SPIN_LOCK_UNLOCKED;
DEFINE_SPINLOCK(tmu0_lock);
u64 jiffies_64 = INITIAL_JIFFIES;
......
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