diff options
author | Ivan Kokshaysky <ink@jurassic.park.msu.ru> | 2009-03-31 18:23:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:16 -0400 |
commit | a6209d6d71f2ab8c63cc1587ef65490d83022baf (patch) | |
tree | 2490d7adf757c9ea00c30fb8f75171d6b8772d3a /arch/alpha/kernel | |
parent | a94066992b3050a7bd9a82bf73bf19f6052d2f82 (diff) |
alpha: xchg/cmpxchg cleanup and fixes
- "_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>
Diffstat (limited to 'arch/alpha/kernel')
0 files changed, 0 insertions, 0 deletions