diff options
author | Will Deacon <will.deacon@arm.com> | 2015-08-06 12:54:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-12 05:59:04 -0400 |
commit | f5468ffde13fc991bd4d6bdec507ffd5777865bd (patch) | |
tree | 44e9d385894eec04675320450bc3f77be6a6c2e9 | |
parent | 6d79ef2d30ee5af7315535d1e7bf6fce0008f815 (diff) |
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>
-rw-r--r-- | lib/lockref.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/lockref.c b/lib/lockref.c index 494994bf17c8..5a92189ad711 100644 --- a/lib/lockref.c +++ b/lib/lockref.c | |||
@@ -4,14 +4,6 @@ | |||
4 | #if USE_CMPXCHG_LOCKREF | 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 | * Note that the "cmpxchg()" reloads the "old" value for the | 7 | * Note that the "cmpxchg()" reloads the "old" value for the |
16 | * failure case. | 8 | * failure case. |
17 | */ | 9 | */ |