]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Use __always_inline for xchg* and cmpxchg*
authorPaul Mackerras <paulus@samba.org>
Mon, 28 Apr 2008 04:44:08 +0000 (14:44 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 29 Apr 2008 05:57:34 +0000 (15:57 +1000)
commitf986a0d24294125a01db76fb17f1406506b73d4c
tree075067cc4390d186cef962098fae2e11d34c5bef
parentaac225f5529a9ef5d47f888aaeeb06eeeaa69edb
[POWERPC] Use __always_inline for xchg* and cmpxchg*

This changes the definitions of the xchg and cmpxchg families of
functions in include/asm-powerpc/system.h to be marked __always_inline
rather than __inline__.  The reason for doing this is that we rely on
the compiler inlining them in order to eliminate the references to
__xchg_called_with_bad_pointer and __cmpxchg_called_with_bad_pointer,
which are deliberately left undefined.  Thus this change will enable
us to make the inline keyword be just a hint rather than a directive.

Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/system.h