x86/percpu: Define raw_cpu_try_cmpxchg and this_cpu_try_cmpxchg()
authorUros Bizjak <ubizjak@gmail.com>
Wed, 30 Aug 2023 15:13:56 +0000 (17:13 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 15 Sep 2023 11:18:23 +0000 (13:18 +0200)
commit5f863897d964e834a0da35b1e483b5bb8faca522
treef392212109ff54ecfc645f7b00e8d73a9950f11d
parent54cd971c6f4461fb6b178579751788bf4f64dfca
x86/percpu: Define raw_cpu_try_cmpxchg and this_cpu_try_cmpxchg()

Define target-specific raw_cpu_try_cmpxchg_N() and
this_cpu_try_cmpxchg_N() macros. These definitions override
the generic fallback definitions and enable target-specific
optimized implementations.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230830151623.3900-1-ubizjak@gmail.com
arch/x86/include/asm/percpu.h