Commit f5468ffd authored by Will Deacon's avatar Will Deacon Committed by Ingo Molnar

locking/lockref: Remove homebrew cmpxchg64_relaxed() macro definition

cmpxchg64_relaxed() is now defined by linux/atomic.h, so we can
remove our local definition from the lockref code.
Signed-off-by: default avatarWill Deacon <>
Signed-off-by: default avatarPeter Zijlstra (Intel) <>
Cc: Linus Torvalds <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Link: default avatarIngo Molnar <>
parent 6d79ef2d
......@@ -3,14 +3,6 @@
* Allow weakly-ordered memory architectures to provide barrier-less
* cmpxchg semantics for lockref updates.
#ifndef cmpxchg64_relaxed
# define cmpxchg64_relaxed cmpxchg64
* Note that the "cmpxchg()" reloads the "old" value for the
* failure case.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment