Skip to content

Commit

Permalink
spin_lock_unlocked cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Oct 17, 2007
1 parent d68c9d6 commit f7a75f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/mips/pci/ops-pmcmsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*****************************************************************************
*
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/mm/slice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions fs/sysfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down

0 comments on commit f7a75f0

Please sign in to comment.