locking: Reduce ifdefs in kernel/spinlock.c
authorThomas Gleixner <tglx@linutronix.de>
Mon, 9 Nov 2009 15:21:41 +0000 (15:21 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 Nov 2009 19:53:28 +0000 (20:53 +0100)
commit8e13c7b772387f55dc05c6a0e5b30010c3c46ff9
tree7cfa275b95febce0cf29c5c8faf2bc7566305265
parent6beb000923882f6204ea2cfcd932e568e900803f
locking: Reduce ifdefs in kernel/spinlock.c

With the Kconfig based inline decisions we can remove extra ifdefs in
kernel/spinlock.c by creating the complex lockbreak functions as
inlines which are inserted into the non inlined lock functions.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <20091109151428.548614772@linutronix.de>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
kernel/spinlock.c