MIPS: asm: local: add barriers for Loongson
authorWang Xuerui <git@xen0n.name>
Thu, 23 Jan 2020 04:04:09 +0000 (12:04 +0800)
committerPaul Burton <paulburton@kernel.org>
Thu, 23 Jan 2020 18:21:53 +0000 (10:21 -0800)
commit3e86460ebe2340df6a33b35a55312cc369bdcbd0
tree84f59a964ecc6dba1eefd290713426106069acc4
parentc9444384f0d5cfdbd4ed165b17e53e1537e109cc
MIPS: asm: local: add barriers for Loongson

Somehow these LL/SC usages are not taken care of, breaking Loongson
builds. Add the SYNCs appropriately.

Signed-off-by: Wang Xuerui <git@xen0n.name>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: <stable@vger.kernel.org> # v5.5+
arch/mips/include/asm/local.h