Re: [RFC PATCH 1/4] asm-generic: cmpxchg: implement dummy cmpxchg64_relaxed operation

2013-09-26 Thread Will Deacon
On Thu, Sep 26, 2013 at 04:34:04PM +0100, Linus Torvalds wrote: > On Thu, Sep 26, 2013 at 8:13 AM, Will Deacon wrote: > > > > This patch implements a dummy implementation for asm-generic, falling > > back to the usual cmpxchg64 code. > > I don't like the "let's add dummy operations for everybody

Re: [RFC PATCH 1/4] asm-generic: cmpxchg: implement dummy cmpxchg64_relaxed operation

2013-09-26 Thread Linus Torvalds
On Thu, Sep 26, 2013 at 8:13 AM, Will Deacon wrote: > > This patch implements a dummy implementation for asm-generic, falling > back to the usual cmpxchg64 code. I don't like the "let's add dummy operations for everybody who doesn't care" when it is this specialized. I'd much rather just add a s

[RFC PATCH 1/4] asm-generic: cmpxchg: implement dummy cmpxchg64_relaxed operation

2013-09-26 Thread Will Deacon
cmpxchg64_relaxed can be used to provide barrier-less semantics for a 64-bit cmpxchg operation in cases where the strong memory ordering is not required. This patch implements a dummy implementation for asm-generic, falling back to the usual cmpxchg64 code. Cc: Arnd Bergmann Signed-off-by: Will