]> git.baikalelectronics.ru Git - kernel.git/commit
x86: spinlocks: define dummy __raw_spin_is_contended
authorKyle McMartin <kyle@redhat.com>
Sun, 8 Feb 2009 22:39:58 +0000 (17:39 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Feb 2009 16:15:39 +0000 (08:15 -0800)
commitb1f4b874d830e1076d16215346ec1e699ecbd7c1
treefcc1ef7e4bd95ce58d5bbb74ad129bdc248252ca
parente6505a073c7ab402d5ebaf43f07f456017a165c8
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>
arch/mips/include/asm/spinlock.h
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/spinlock.h
include/linux/spinlock.h