mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 10:30:52 +07:00
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:
parent
d68c9d6ae8
commit
f7a75f0a40
@ -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);
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user