]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: cmpxchg: Pull xchg() asm into a macro
authorPaul Burton <paul.burton@imgtec.com>
Sat, 10 Jun 2017 00:26:34 +0000 (17:26 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:24 +0000 (02:42 +0200)
commit5154f3b4194910a4216866e7535c37e5bcb17800
tree500f895cd8008c1aeff9c446e590c561dac279b2
parent6b1e76297c4ad4b906fdf054460e4e56914f6e34
MIPS: cmpxchg: Pull xchg() asm into a macro

Use a macro to generate the 32 & 64 bit variants of the backing code for
xchg(), much as is already done for cmpxchg(). This removes the
duplication that could previously be found in __xchg_u32() &
__xchg_u64().

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16349/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cmpxchg.h