]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sh: Emulate one-byte cmpxchg
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 27 Mar 2024 22:21:31 +0000 (15:21 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 13 Sep 2024 14:10:38 +0000 (07:10 -0700)
commitc81a748edefd098ea21dd35d4bba03f69412fc26
treec04d181cc52b0ee66bc0172392cc6414bc5a01ac
parentf2519d4d4fc4d36f2b58c5614357de9f5b4032fc
sh: Emulate one-byte cmpxchg

Use the new cmpxchg_emu_u8() to emulate one-byte cmpxchg() on sh.

[ paulmck: Drop two-byte support per Arnd Bergmann feedback. ]
[ paulmck: Apply feedback from Naresh Kamboju. ]
[ Apply Geert Uytterhoeven feedback. ]

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Palmer Dabbelt <palmer@rivosinc.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: <linux-sh@vger.kernel.org>
Acked-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/Kconfig
arch/sh/include/asm/cmpxchg.h