locking/atomic: Add generic try_cmpxchg{,64}_local() support
authorUros Bizjak <ubizjak@gmail.com>
Wed, 5 Apr 2023 14:17:06 +0000 (16:17 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 29 Apr 2023 07:09:02 +0000 (09:09 +0200)
commite6ce9d741163af0b846637ce6550ae8a671b1588
treeec57055469cac285783af882458823c34ad838b8
parent286deb7ec03d941664ac3ffaff58814b454adf65
locking/atomic: Add generic try_cmpxchg{,64}_local() support

Add generic support for try_cmpxchg{,64}_local() and their falbacks.

These provides the generic try_cmpxchg_local family of functions
from the arch_ prefixed version, also adding explicit instrumentation.

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>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20230405141710.3551-2-ubizjak@gmail.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/atomic/atomic-arch-fallback.h
include/linux/atomic/atomic-instrumented.h
scripts/atomic/gen-atomic-fallback.sh
scripts/atomic/gen-atomic-instrumented.sh