Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1191864
| From | Will Deacon <will.deacon@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 4/8] lockref: remove homebrew cmpxchg64_relaxed macro definition |
| Date | 2015-07-24 16:10 +0200 |
| Message-ID | <pPLPJ-80T-39@gated-at.bofh.it> (permalink) |
| References | <pPLPH-80T-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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> --- lib/lockref.c | 8 -------- 1 file changed, 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 @@ #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 * failure case. */ -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/8] Add generic support for relaxed atomics Will Deacon <will.deacon@arm.com> - 2015-07-24 16:10 +0200 [PATCH v3 6/8] locking/qrwlock: make use of acquire/release/relaxed atomics Will Deacon <will.deacon@arm.com> - 2015-07-24 16:10 +0200 [PATCH v3 4/8] lockref: remove homebrew cmpxchg64_relaxed macro definition Will Deacon <will.deacon@arm.com> - 2015-07-24 16:10 +0200 [PATCH v3 3/8] asm-generic: add relaxed/acquire/release variants for atomic_long_t Will Deacon <will.deacon@arm.com> - 2015-07-24 16:10 +0200 [PATCH v3 2/8] asm-generic: rework atomic-long.h to avoid bulk code duplication Will Deacon <will.deacon@arm.com> - 2015-07-24 16:10 +0200
csiph-web