]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: cmpxchg: Drop __xchg_u{32,64} functions
authorPaul Burton <paul.burton@imgtec.com>
Sat, 10 Jun 2017 00:26:37 +0000 (17:26 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:25 +0000 (02:42 +0200)
commit62c6081dca75d6bec1198ed5a1ae50968b323a8c
tree71800a5277c34d533ee726e0947d121c00848043
parentd15dc68c1143e249c36612c15bf4e930637b47c3
MIPS: cmpxchg: Drop __xchg_u{32,64} functions

The __xchg_u32() & __xchg_u64() functions now add very little value.
This patch therefore removes them, by:

  - Moving memory barriers out of them & into xchg(), which also removes
    the duplication & readies us to support xchg_relaxed() if we wish to.

  - Calling __xchg_asm() directly from __xchg().

  - Performing the check for CONFIG_64BIT being enabled in the size=8
    case of __xchg().

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