Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Will Deacon <will.deacon@arm.com>
Signed-off-by: Peter 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: Ingo Molnar <mingo@kernel.org>

authored by

Will Deacon and committed by
Ingo Molnar
f5468ffd 6d79ef2d

-8
-8
lib/lockref.c
··· 4 4 #if USE_CMPXCHG_LOCKREF 5 5 6 6 /* 7 - * Allow weakly-ordered memory architectures to provide barrier-less 8 - * cmpxchg semantics for lockref updates. 9 - */ 10 - #ifndef cmpxchg64_relaxed 11 - # define cmpxchg64_relaxed cmpxchg64 12 - #endif 13 - 14 - /* 15 7 * Note that the "cmpxchg()" reloads the "old" value for the 16 8 * failure case. 17 9 */