commit | 5154f3b4194910a4216866e7535c37e5bcb17800 | [log] [tgz] |
---|---|---|
author | Paul Burton <paul.burton@imgtec.com> | Fri Jun 09 17:26:34 2017 -0700 |
committer | Ralf Baechle <ralf@linux-mips.org> | Thu Jun 29 02:42:24 2017 +0200 |
tree | 500f895cd8008c1aeff9c446e590c561dac279b2 | |
parent | 6b1e76297c4ad4b906fdf054460e4e56914f6e34 [diff] |
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>