Skip to content

Commit

Permalink
x86: Fix atomic_long_xchg() on 64bit
Browse files Browse the repository at this point in the history
Apparently I'm the first to use it :-)

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 2, 2009
1 parent 29c2810 commit 53e111a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-generic/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static inline long atomic_long_add_unless(atomic_long_t *l, long a, long u)
#define atomic_long_cmpxchg(l, old, new) \
(atomic64_cmpxchg((atomic64_t *)(l), (old), (new)))
#define atomic_long_xchg(v, new) \
(atomic64_xchg((atomic64_t *)(l), (new)))
(atomic64_xchg((atomic64_t *)(v), (new)))

#else /* BITS_PER_LONG == 64 */

Expand Down

0 comments on commit 53e111a

Please sign in to comment.