Skip to content

Commit 97f7dcb

Browse files
committed
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
1 parent 7d3713a commit 97f7dcb

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2255,9 +2255,13 @@ config CPU_GENERIC_DUMP_TLB
22552255
bool
22562256
default y if !(CPU_R3000 || CPU_R8000 || CPU_TX39XX)
22572257

2258+
config CPU_R2300_FPU
2259+
bool
2260+
default y if CPU_R3000 || CPU_TX39XX
2261+
22582262
config CPU_R4K_FPU
22592263
bool
2260-
default y if !(CPU_R3000 || CPU_TX39XX)
2264+
default y if !CPU_R2300_FPU
22612265

22622266
config CPU_R4K_CACHE_TLB
22632267
bool

‎arch/mips/kernel/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ sw-$(CONFIG_CPU_TX39XX) := r2300_switch.o
4242
sw-$(CONFIG_CPU_CAVIUM_OCTEON) := octeon_switch.o
4343
obj-y += $(sw-y)
4444

45+
obj-$(CONFIG_CPU_R2300_FPU) += r2300_fpu.o
4546
obj-$(CONFIG_CPU_R4K_FPU) += r4k_fpu.o
46-
obj-$(CONFIG_CPU_R3000) += r2300_fpu.o
47-
obj-$(CONFIG_CPU_TX39XX) += r2300_fpu.o
4847

4948
obj-$(CONFIG_SMP) += smp.o
5049
obj-$(CONFIG_SMP_UP) += smp-up.o

0 commit comments

Comments
 (0)