diff options
author | Kyle McMartin <kyle@redhat.com> | 2009-02-08 17:39:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-02-09 08:15:39 -0800 |
commit | a5ef7ca0e2636bad0ccd07b996d775348ae2b65e (patch) | |
tree | fcc1ef7e4bd95ce58d5bbb74ad129bdc248252ca /arch/mips/include | |
parent | d5b562330ec766292a3ac54ae5e0673610bd5b3d (diff) | |
download | kernel_samsung_crespo-a5ef7ca0e2636bad0ccd07b996d775348ae2b65e.zip kernel_samsung_crespo-a5ef7ca0e2636bad0ccd07b996d775348ae2b65e.tar.gz kernel_samsung_crespo-a5ef7ca0e2636bad0ccd07b996d775348ae2b65e.tar.bz2 |
x86: spinlocks: define dummy __raw_spin_is_contended
Architectures other than mips and x86 are not using ticket spinlocks.
Therefore, the contention on the lock is meaningless, since there is
nobody known to be waiting on it (arguably /fairly/ unfair locks).
Dummy it out to return 0 on other architectures.
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/spinlock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/spinlock.h b/arch/mips/include/asm/spinlock.h index 1a1f320..0884947 100644 --- a/arch/mips/include/asm/spinlock.h +++ b/arch/mips/include/asm/spinlock.h @@ -51,6 +51,7 @@ static inline int __raw_spin_is_contended(raw_spinlock_t *lock) return (((counters >> 14) - counters) & 0x1fff) > 1; } +#define __raw_spin_is_contended __raw_spin_is_contended static inline void __raw_spin_lock(raw_spinlock_t *lock) { |