Re: [PATCH v5 19/21] asm-generic/atomic: Add try_cmpxchg() fallbacks

2020-10-12 Thread Ingo Molnar
* Masami Hiramatsu wrote: > From: Peter Zijlstra > > Only x86 provides try_cmpxchg() outside of the atomic_t interfaces, > provide generic fallbacks to create this interface from the widely > available cmpxchg() function. > > Signed-off-by: Peter Zijlstra (Intel) > Acked-by: Will Deacon

[PATCH v5 19/21] asm-generic/atomic: Add try_cmpxchg() fallbacks

2020-08-29 Thread Masami Hiramatsu
From: Peter Zijlstra Only x86 provides try_cmpxchg() outside of the atomic_t interfaces, provide generic fallbacks to create this interface from the widely available cmpxchg() function. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Will Deacon --- arch/x86/include/asm/atomic.h