diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-02 19:01:58 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-02 23:45:29 +0400 |
commit | 53e111a730ea8b002d57dd226098c12789993329 (patch) | |
tree | 508c0fe6f84ee67b9a618d135beaf5152b57c65f /include | |
parent | 29c2810276fbf8419c9b4d942b99c873e9b7640a (diff) | |
download | linux-53e111a730ea8b002d57dd226098c12789993329.tar.xz |
x86: Fix atomic_long_xchg() on 64bit
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h index 3673a13b6703..81d3be459efb 100644 --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic.h @@ -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 */ |