[Xen-devel] [PATCHv2 1/4] atomic: replace atomic_compareandswap() with atomic_cmpxchg()

2016-01-26 Thread David Vrabel
atomic_compareandswap() used atomic_t as the new, old and returned values which is less convinient than using just int. Signed-off-by: David Vrabel --- v2: - arm/arm64 already provided atomic_cmpxchg() --- xen/common/domain.c | 5 +

Re: [Xen-devel] [PATCHv2 1/4] atomic: replace atomic_compareandswap() with atomic_cmpxchg()

2016-01-26 Thread Ian Campbell
On Tue, 2016-01-26 at 16:25 +, David Vrabel wrote: > atomic_compareandswap() used atomic_t as the new, old and returned > values which is less convinient than using just int. "convenient" > diff --git a/xen/include/asm-arm/atomic.h b/xen/include/asm-arm/atomic.h > index 5a38c67..29ab265