MIPS: Make DIEI support as a config option
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 13 Jan 2020 10:14:59 +0000 (18:14 +0800)
committerPaul Burton <paulburton@kernel.org>
Thu, 23 Jan 2020 18:26:16 +0000 (10:26 -0800)
commitba9196d2e005a07dc616a044a57b47665efe133d
tree200ec1af1825ab3f938ddbabdfc4467080aee8bd
parent636e9d23dd45ec7d637c2c2ca63c38d9aa5c5fbd
MIPS: Make DIEI support as a config option

DI(Disable Interrupt) and EI(Enable Interrupt) instructions is required by
MIPSR2/MIPSR6, however, it appears to be buggy on some processors such as
Loongson-3A1000. Thus we make it as a config option to allow disable it at
compile time with CPU_MIPSR2 selected.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: chenhc@lemote.com
Cc: paul.burton@mips.com
Cc: linux-kernel@vger.kernel.org
arch/mips/Kconfig
arch/mips/include/asm/irqflags.h
arch/mips/lib/mips-atomic.c