diff options
-rw-r--r-- | arch/x86/lib/atomic64_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/atomic64_32.c b/arch/x86/lib/atomic64_32.c index a910238a7760..fd28fd3fb742 100644 --- a/arch/x86/lib/atomic64_32.c +++ b/arch/x86/lib/atomic64_32.c | |||
@@ -36,7 +36,7 @@ u64 atomic64_xchg(atomic64_t *ptr, u64 new_val) | |||
36 | u64 old_val; | 36 | u64 old_val; |
37 | 37 | ||
38 | do { | 38 | do { |
39 | old_val = atomic_read(ptr); | 39 | old_val = __atomic64_read(ptr); |
40 | } while (atomic64_cmpxchg(ptr, old_val, new_val) != old_val); | 40 | } while (atomic64_cmpxchg(ptr, old_val, new_val) != old_val); |
41 | 41 | ||
42 | return old_val; | 42 | return old_val; |