]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xtensa: Emulate one-byte cmpxchg
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 27 Mar 2024 22:28:04 +0000 (15:28 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 13 Sep 2024 14:10:38 +0000 (07:10 -0700)
commite799bef0d9c85b963938d8f31806a898385a5b09
tree76231fcc340ff3b3be611ee142b098c5490eed1a
parentc81a748edefd098ea21dd35d4bba03f69412fc26
xtensa: Emulate one-byte cmpxchg

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

[ paulmck: Apply kernel test robot feedback. ]
[ paulmck: Drop two-byte support per Arnd Bergmann feedback. ]
[ Apply Geert Uytterhoeven feedback. ]

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Tested-by: Yujie Liu <yujie.liu@intel.com>
Cc: Andi Shyti <andi.shyti@linux.intel.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
arch/xtensa/Kconfig
arch/xtensa/include/asm/cmpxchg.h