]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: barrier: Clean up __smp_mb() definition
authorPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 21:53:10 +0000 (21:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:42:20 +0000 (09:42 -0700)
commitf3a9cfb3c11223ef599469270bcda29900e1b181
tree8b65fb2ecd7934b41e505afa731916913243b470
parent0f4f193374ee8b598cd79ff5285d92a332be4dc2
MIPS: barrier: Clean up __smp_mb() definition

We #ifdef on Cavium Octeon CPUs, but emit the same sync instruction in
both cases. Remove the #ifdef & simply expand to the __sync() macro.

Whilst here indent the strong ordering case definitions to match the
indentation of the weak ordering ones, helping readability.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/barrier.h