mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[PATCH] more SPIN_LOCK_UNLOCKED -> DEFINE_SPINLOCK conversions
This converts the final 20 DEFINE_SPINLOCK holdouts. (another 580 places are already using DEFINE_SPINLOCK). Build tested on x86. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
8d06afab73
commit
a9f6a0dd54
17 changed files with 18 additions and 18 deletions
|
@ -20,7 +20,7 @@ spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] = {
|
|||
|
||||
#else /* SMP */
|
||||
|
||||
static spinlock_t dummy = SPIN_LOCK_UNLOCKED;
|
||||
static DEFINE_SPINLOCK(dummy);
|
||||
#define ATOMIC_HASH_SIZE 1
|
||||
#define ATOMIC_HASH(a) (&dummy)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue