spin_lock_unlocked cleanups

Replace some SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Roel Kluin 2007-10-16 23:30:25 -07:00 committed by Linus Torvalds
parent d68c9d6ae8
commit f7a75f0a40
3 changed files with 4 additions and 4 deletions

View File

@ -206,7 +206,7 @@ static void pci_proc_init(void)
}
#endif /* CONFIG_PROC_FS && PCI_COUNTERS */
spinlock_t bpci_lock = SPIN_LOCK_UNLOCKED;
DEFINE_SPINLOCK(bpci_lock);
/*****************************************************************************
*

View File

@ -34,7 +34,7 @@
#include <asm/mmu.h>
#include <asm/spu.h>
static spinlock_t slice_convert_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(slice_convert_lock);
#ifdef DEBUG

View File

@ -24,9 +24,9 @@
DEFINE_MUTEX(sysfs_mutex);
DEFINE_MUTEX(sysfs_rename_mutex);
spinlock_t sysfs_assoc_lock = SPIN_LOCK_UNLOCKED;
DEFINE_SPINLOCK(sysfs_assoc_lock);
static spinlock_t sysfs_ino_lock = SPIN_LOCK_UNLOCKED;
static DEFINE_SPINLOCK(sysfs_ino_lock);
static DEFINE_IDA(sysfs_ino_ida);
/**