Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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 <will.deacon@arm.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Waiman.Long@hp.com
Cc: paulmck@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1438880084-18856-5-git-send-email-will.deacon@arm.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 6d79ef2d
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -3,14 +3,6 @@


#if USE_CMPXCHG_LOCKREF
#if USE_CMPXCHG_LOCKREF


/*
 * Allow weakly-ordered memory architectures to provide barrier-less
 * cmpxchg semantics for lockref updates.
 */
#ifndef cmpxchg64_relaxed
# define cmpxchg64_relaxed cmpxchg64
#endif

/*
/*
 * Note that the "cmpxchg()" reloads the "old" value for the
 * Note that the "cmpxchg()" reloads the "old" value for the
 * failure case.
 * failure case.