percpu: Add {raw,this}_cpu_try_cmpxchg()
authorPeter Zijlstra <peterz@infradead.org>
Wed, 31 May 2023 13:08:38 +0000 (15:08 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 5 Jun 2023 07:36:36 +0000 (09:36 +0200)
commitc5c0ba953b8c969c5d51bf1c57f239866a97c47c
treebb1da4bcc993aeacb1383da1e379ee14834ead38
parent8c8b096a23d12fedf3c0f50524f30113ef97aa8c
percpu: Add {raw,this}_cpu_try_cmpxchg()

Add the try_cmpxchg() form to the per-cpu ops.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20230531132323.587480729@infradead.org
include/asm-generic/percpu.h
include/linux/percpu-defs.h