locking/arch: Wire up local_try_cmpxchg()
authorUros Bizjak <ubizjak@gmail.com>
Wed, 5 Apr 2023 14:17:08 +0000 (16:17 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 29 Apr 2023 07:09:16 +0000 (09:09 +0200)
commitd994f2c8e2410ebcb928df67baa6f04e29bc9d3e
treed410609c74e79e17a758aec1be8e043603be8e61
parent8fc4fddaf9a184eea7da21290236a1764e608a01
locking/arch: Wire up local_try_cmpxchg()

Implement target specific support for local_try_cmpxchg()
and local_cmpxchg() using typed C wrappers that call their
_local counterpart and provide additional checking of
their input arguments.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230405141710.3551-4-ubizjak@gmail.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/include/asm/local.h
arch/loongarch/include/asm/local.h
arch/mips/include/asm/local.h
arch/powerpc/include/asm/local.h
arch/x86/include/asm/local.h