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)
commit05e6da742b5b708057e84487576655e4d7238dd1
tree8b65fb2ecd7934b41e505afa731916913243b470
parent21e3134b3ec09e722cbcda69788f206adc8db1f4
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