]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: barrier: Make __smp_mb__before_atomic() a no-op for Loongson3
authorPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 21:53:41 +0000 (21:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:43:08 +0000 (09:43 -0700)
commit931c320423939a12b04a49005cfc3506780c0b6f
treea14701a3331856a7b482b571a7861b64466006db
parent0e9b0c2c8938e359e56aba2c126a65dc44dd16bb
MIPS: barrier: Make __smp_mb__before_atomic() a no-op for Loongson3

Loongson3 systems with CONFIG_CPU_LOONGSON3_WORKAROUNDS enabled already
emit a full completion barrier as part of the inline assembly containing
LL/SC loops for atomic operations. As such the barrier emitted by
__smp_mb__before_atomic() is redundant, and we can remove it.

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