kernel-ark/arch/m32r
Nick Piggin 95c354fe9f spinlock: lockbreak cleanup
The break_lock data structure and code for spinlocks is quite nasty.
Not only does it double the size of a spinlock but it changes locking to
a potentially less optimal trylock.

Put all of that under CONFIG_GENERIC_LOCKBREAK, and introduce a
__raw_spin_is_contended that uses the lock data itself to determine whether
there are waiters on the lock, to be used if CONFIG_GENERIC_LOCKBREAK is
not set.

Rename need_lockbreak to spin_needbreak, make it use spin_is_contended to
decouple it from the spinlock implementation, and make it typesafe (rwlocks
do not have any need_lockbreak sites -- why do they even get bloated up
with that break_lock then?).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-01-30 13:31:20 +01:00
..
boot
configs m32r: Add defconfig file for the usrv platform. 2007-09-03 11:30:18 +09:00
kernel all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
lib Various typo fixes. 2007-02-17 19:07:33 +01:00
mm pid namespaces: define is_global_init() and is_container_init() 2007-10-19 11:53:37 -07:00
oprofile Combine instrumentation menus in kernel/Kconfig.instrumentation 2007-10-19 11:53:54 -07:00
platforms m32r: Move dot.gdbinit files 2007-09-03 11:30:18 +09:00
defconfig m32r: Update defconfig files for 2.6.23-rc1 2007-09-03 11:30:18 +09:00
Kconfig spinlock: lockbreak cleanup 2008-01-30 13:31:20 +01:00
Kconfig.debug
Makefile kbuild: enable 'make AFLAGS=...' to add additional options to AS 2007-10-15 21:59:31 +02:00