]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Lock initializer cleanup: SH
authorThomas Gleixner <tglx@linutronix.de>
Fri, 21 Jan 2005 00:16:38 +0000 (16:16 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 21 Jan 2005 00:16:38 +0000 (16:16 -0800)
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/sh/cchips/voyagergx/consistent.c
arch/sh/drivers/dma/dma-api.c
arch/sh/kernel/cpu/sh4/sq.c
arch/sh/kernel/time.c

index 921d12b42f3a3c986b682e1e9ecf2a7b93a74647..5b92585a38d2b3512889557b9cb18e30f78921bc 100644 (file)
@@ -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
index 7c3330f118d04aa7c6bd37d073c3b553728215c1..96e3036ec2bb0062b0232f24669aee7472de8bf4 100644 (file)
@@ -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);
 
 /*
index 31579c2ffda571799ae0066895cccf8c36eb31d9..8ab1855ff936206b814fde2cec22093c80cb4c0c 100644 (file)
@@ -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
index 149803d26436ed19c4dbb1e23ec8623c4092e068..c417c84790621a7dab8e8e91fbf69b7b48afcdbf 100644 (file)
@@ -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;