]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: Better abstract R2300 FPU usage in Kconfig
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:14:02 +0000 (23:14 +0000)
committerPaul Burton <paul.burton@mips.com>
Fri, 9 Nov 2018 18:23:14 +0000 (10:23 -0800)
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
arch/mips/Kconfig
arch/mips/kernel/Makefile

index 47a8f44b5db6c19fc6b4ce0825b02f0d35abd019..b3f36c2c759dca1704b291a3eda3632bc92ef25d 100644 (file)
@@ -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
index 210c2802cf4df6320ea984978a696e2377d518fa..847d71c9005340b2cc96814c2314965ebadc3318 100644 (file)
@@ -42,9 +42,8 @@ sw-$(CONFIG_CPU_TX39XX)               := r2300_switch.o
 sw-$(CONFIG_CPU_CAVIUM_OCTEON) := octeon_switch.o
 obj-y                          += $(sw-y)
 
+obj-$(CONFIG_CPU_R2300_FPU)    += r2300_fpu.o
 obj-$(CONFIG_CPU_R4K_FPU)      += r4k_fpu.o
-obj-$(CONFIG_CPU_R3000)                += r2300_fpu.o
-obj-$(CONFIG_CPU_TX39XX)       += r2300_fpu.o
 
 obj-$(CONFIG_SMP)              += smp.o
 obj-$(CONFIG_SMP_UP)           += smp-up.o