]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: cmpxchg: Implement __cmpxchg() as a function
authorPaul Burton <paul.burton@imgtec.com>
Sat, 10 Jun 2017 00:26:38 +0000 (17:26 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:25 +0000 (02:42 +0200)
commit8263db4d7768448cb06adbbdd14c613a1ea09830
tree7191e01be77bf903f87fb730e519152dcd8a5c58
parent62c6081dca75d6bec1198ed5a1ae50968b323a8c
MIPS: cmpxchg: Implement __cmpxchg() as a function

Replace the macro definition of __cmpxchg() with an inline function,
which is easier to read & modify. The cmpxchg() & cmpxchg_local() macros
are adjusted to call the new __cmpxchg() function.

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