arch: Introduce arch_{,try_}_cmpxchg128{,_local}()
For all architectures that currently support cmpxchg_double() implement the cmpxchg128() family of functions that is basically the same but with a saner interface. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by:
Arnd Bergmann <arnd@arndb.de> Reviewed-by:
Mark Rutland <mark.rutland@arm.com> Acked-by:
Heiko Carstens <hca@linux.ibm.com> Acked-by:
Mark Rutland <mark.rutland@arm.com> Tested-by:
Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20230531132323.452120708@infradead.org
Showing
- arch/arm64/include/asm/atomic_ll_sc.h 41 additions, 0 deletionsarch/arm64/include/asm/atomic_ll_sc.h
- arch/arm64/include/asm/atomic_lse.h 31 additions, 0 deletionsarch/arm64/include/asm/atomic_lse.h
- arch/arm64/include/asm/cmpxchg.h 26 additions, 0 deletionsarch/arm64/include/asm/cmpxchg.h
- arch/s390/include/asm/cmpxchg.h 14 additions, 0 deletionsarch/s390/include/asm/cmpxchg.h
- arch/x86/include/asm/cmpxchg_32.h 2 additions, 1 deletionarch/x86/include/asm/cmpxchg_32.h
- arch/x86/include/asm/cmpxchg_64.h 63 additions, 1 deletionarch/x86/include/asm/cmpxchg_64.h
Please register or sign in to comment