aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/include/asm/xchg.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2009-04-01alpha: xchg/cmpxchg cleanup and fixesIvan Kokshaysky1-0/+258
- "_local" versions of xchg/cmpxchg functions duplicate code of non-local ones (quite a few pages of assembler), except memory barriers. We can generate these two variants from a single header file using simple macros; - convert xchg macro back to inline function using always_inline attribute; - use proper argument types for cmpxchg_u8/u16 functions to fix a problem with negative arguments. Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Richard Henderson <rth@twiddle.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>