locking: Move spinlock function bodies to header file
commit69d0ee7377eef808e34ba5542b554ec97244b871
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 31 Aug 2009 12:43:36 +0000 (31 14:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 31 Aug 2009 16:08:50 +0000 (31 18:08 +0200)
treef46c756b897cf51497fda2ad22f9f12a3512e23b
parent0ee000e5e8fa2e5c760250be0d78d5906e3eb94b
locking: Move spinlock function bodies to header file

Move spinlock function bodies to header file by creating a
static inline version of each variant. Use the inline version
on the out-of-line code.

This shouldn't make any difference besides that the spinlock
code can now be used to generate inlined spinlock code.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Horst Hartmann <horsth@linux.vnet.ibm.com>
Cc: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: David Miller <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: <linux-arch@vger.kernel.org>
LKML-Reference: <20090831124417.859022429@de.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/spinlock.h
include/linux/spinlock_api_smp.h
kernel/spinlock.c