]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
csky: Emulate one-byte cmpxchg
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 27 Mar 2024 22:14:26 +0000 (15:14 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 11 May 2024 14:07:07 +0000 (07:07 -0700)
commit5800e77d88c0cd98bc10460df148631afa7b5e4d
tree62c98aa754b159ffa814a52bc10a22c89bb213ae
parenta88d970c8bb55dc20f319ce3e33c7ce0e9647480
csky: Emulate one-byte cmpxchg

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

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

Co-developed-by: Yujie Liu <yujie.liu@intel.com>
Signed-off-by: Yujie Liu <yujie.liu@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Tested-by: Yujie Liu <yujie.liu@intel.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: <linux-csky@vger.kernel.org>
arch/csky/Kconfig
arch/csky/include/asm/cmpxchg.h