[PATCH] MIPS: Set better default CPU model and kernel code model

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Set default CPU model to Release 2 CPUs (MIPS64R2 if 64 bit CPU
is present, otherwise MIPS32R2) to get better feature coverage
on various default configs.

Also set default kernel code model to 64 bit since nowadays it
doesn't make much sense to run 32 bit kernel on a 64 bit system.

Reported-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Signed-off-by: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx>
---
 arch/mips/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index ecc7a755fae6..1d681dd87bb0 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1260,6 +1260,8 @@ menu "CPU selection"
 
 choice
 	prompt "CPU type"
+	default CPU_MIPS64_R2 if SYS_HAS_CPU_MIPS64_R2
+	default CPU_MIPS32_R2 if SYS_HAS_CPU_MIPS32_R2
 	default CPU_R4X00
 
 config CPU_LOONGSON64
@@ -2007,6 +2009,7 @@ menu "Kernel type"
 
 choice
 	prompt "Kernel code model"
+	default 64BIT
 	help
 	  You should only select this option if you have a workload that
 	  actually benefits from 64-bit processing or if your machine has
-- 
2.39.2 (Apple Git-143)




[Index of Archives]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux