summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kconfig
diff options
context:
space:
mode:
authorPaul Burton2018-11-08 00:14:02 +0100
committerPaul Burton2018-11-09 19:23:14 +0100
commit97f7dcbf279ada9a25f36666420a72ebbc0101df (patch)
treeda58ab4aec6c8af42371f20a36f61a8673e9d91b /arch/mips/Kconfig
parentMIPS: Drop forward declarations of sigcontext in asm/fpu.h (diff)
downloadkernel-qcow2-linux-97f7dcbf279ada9a25f36666420a72ebbc0101df.tar.gz
kernel-qcow2-linux-97f7dcbf279ada9a25f36666420a72ebbc0101df.tar.xz
kernel-qcow2-linux-97f7dcbf279ada9a25f36666420a72ebbc0101df.zip
MIPS: Better abstract R2300 FPU usage in Kconfig
Introduce a CONFIG_CPU_R2300_FPU Kconfig symbol mirroring the existing CONFIG_CPU_R4K_FPU, and use it to determine whether to build r4k_fpu.S. This removes the duplicate R3000 & TX39XX cases in arch/mips/kernel/Makefile and prepares us for the possibility of disabling FP support later. Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/21004/ Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r--arch/mips/Kconfig6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 47a8f44b5db6..b3f36c2c759d 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2255,9 +2255,13 @@ config CPU_GENERIC_DUMP_TLB
bool
default y if !(CPU_R3000 || CPU_R8000 || CPU_TX39XX)
+config CPU_R2300_FPU
+ bool
+ default y if CPU_R3000 || CPU_TX39XX
+
config CPU_R4K_FPU
bool
- default y if !(CPU_R3000 || CPU_TX39XX)
+ default y if !CPU_R2300_FPU
config CPU_R4K_CACHE_TLB
bool