Commit bc69b69f authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

[PATCH] Lock initializer cleanup: V850

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 74304a26
......@@ -25,7 +25,7 @@ extern char memcons_output[], memcons_output_end;
static unsigned long memcons_offs = 0;
/* Spinlock protecting memcons_offs. */
static spinlock_t memcons_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(memcons_lock);
static size_t write (const char *buf, size_t len)
......
......@@ -25,7 +25,7 @@
static unsigned char leds_image[LED_NUM_DIGITS] = { 0 };
/* Spinlock protecting the above leds. */
static spinlock_t leds_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(leds_lock);
/* Common body of LED read/write functions, checks POS and LEN for
correctness, declares a variable using IMG_DECL, initialized pointing at
......
......@@ -359,7 +359,7 @@ static struct mb_sram_free_area *mb_sram_free_areas = &mb_sram_free_tail;
static struct mb_sram_free_area *mb_sram_free_free_areas = 0;
/* Spinlock protecting the above globals. */
static spinlock_t mb_sram_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(mb_sram_lock);
/* Allocate a memory block at least SIZE bytes long in the Mother-A SRAM
space. */
......@@ -514,7 +514,7 @@ static struct dma_mapping *active_dma_mappings = 0;
static struct dma_mapping *free_dma_mappings = 0;
/* Spinlock protecting the above globals. */
static spinlock_t dma_mappings_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(dma_mappings_lock);
static struct dma_mapping *new_dma_mapping (size_t size)
{
......
......@@ -55,7 +55,7 @@ void __up(struct semaphore *sem)
wake_up(&sem->wait);
}
static spinlock_t semaphore_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(semaphore_lock);
void __sched __down(struct semaphore * sem)
{
......
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