@@ -1377,9 +1377,9 @@ choice
13771377 prompt "CPU type"
13781378 default CPU_R4X00
13791379
1380- config CPU_LOONGSON3
1381- bool "Loongson 3 CPU"
1382- depends on SYS_HAS_CPU_LOONGSON3
1380+ config CPU_LOONGSON64
1381+ bool "Loongson GSx64 CPU"
1382+ depends on SYS_HAS_CPU_LOONGSON64
13831383 select ARCH_HAS_PHYS_TO_DMA
13841384 select CPU_SUPPORTS_64BIT_KERNEL
13851385 select CPU_SUPPORTS_HIGHMEM
@@ -1394,19 +1394,19 @@ config CPU_LOONGSON3
13941394 select GPIOLIB
13951395 select SWIOTLB
13961396 help
1397- The Loongson 3 processor implements the MIPS64R2 instruction
1398- set with many extensions.
1397+ The Loongson GSx64 series of processor cores implements the
1398+ MIPS64R2 instruction set with many extensions.
13991399
1400- config LOONGSON3_ENHANCEMENT
1401- bool "New Loongson 3 CPU Enhancements"
1400+ config LOONGSON64_ENHANCEMENT
1401+ bool "New Loongson GSx64E CPU Enhancements"
14021402 default n
14031403 select CPU_MIPSR2
14041404 select CPU_HAS_PREFETCH
1405- depends on CPU_LOONGSON3
1405+ depends on CPU_LOONGSON64
14061406 help
1407- New Loongson 3 CPU (since Loongson-3A R2, as opposed to Loongson-3A
1407+ New Loongson GSx64E cores (since Loongson-3A R2, as opposed to Loongson-3A
14081408 R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
1409- FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPv2 ASE, User
1409+ FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
14101410 Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
14111411 Fast TLB refill support, etc.
14121412
@@ -1418,7 +1418,7 @@ config LOONGSON3_ENHANCEMENT
14181418config CPU_LOONGSON3_WORKAROUNDS
14191419 bool "Old Loongson 3 LLSC Workarounds"
14201420 default y if SMP
1421- depends on CPU_LOONGSON3
1421+ depends on CPU_LOONGSON64
14221422 help
14231423 Loongson 3 processors have the llsc issues which require workarounds.
14241424 Without workarounds the system may hang unexpectedly.
@@ -1433,7 +1433,7 @@ config CPU_LOONGSON3_WORKAROUNDS
14331433config CPU_LOONGSON2E
14341434 bool "Loongson 2E"
14351435 depends on SYS_HAS_CPU_LOONGSON2E
1436- select CPU_LOONGSON2
1436+ select CPU_LOONGSON2EF
14371437 help
14381438 The Loongson 2E processor implements the MIPS III instruction set
14391439 with many extensions.
@@ -1444,7 +1444,7 @@ config CPU_LOONGSON2E
14441444config CPU_LOONGSON2F
14451445 bool "Loongson 2F"
14461446 depends on SYS_HAS_CPU_LOONGSON2F
1447- select CPU_LOONGSON2
1447+ select CPU_LOONGSON2EF
14481448 select GPIOLIB
14491449 help
14501450 The Loongson 2F processor implements the MIPS III instruction set
@@ -1857,7 +1857,7 @@ config SYS_SUPPORTS_ZBOOT_UART_PROM
18571857 bool
18581858 select SYS_SUPPORTS_ZBOOT
18591859
1860- config CPU_LOONGSON2
1860+ config CPU_LOONGSON2EF
18611861 bool
18621862 select CPU_SUPPORTS_32BIT_KERNEL
18631863 select CPU_SUPPORTS_64BIT_KERNEL
@@ -1900,7 +1900,7 @@ config CPU_BMIPS5000
19001900 select SYS_SUPPORTS_HOTPLUG_CPU
19011901 select CPU_HAS_RIXI
19021902
1903- config SYS_HAS_CPU_LOONGSON3
1903+ config SYS_HAS_CPU_LOONGSON64
19041904 bool
19051905 select CPU_SUPPORTS_CPUFREQ
19061906 select CPU_HAS_RIXI
@@ -2162,7 +2162,7 @@ choice
21622162
21632163config PAGE_SIZE_4KB
21642164 bool "4kB"
2165- depends on !CPU_LOONGSON2 && !CPU_LOONGSON3
2165+ depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
21662166 help
21672167 This option select the standard 4kB Linux page size. On some
21682168 R3000-family processors this is the only available page size. Using
@@ -2616,7 +2616,7 @@ config CPU_SUPPORTS_MSA
26162616
26172617config ARCH_FLATMEM_ENABLE
26182618 def_bool y
2619- depends on !NUMA && !CPU_LOONGSON2
2619+ depends on !NUMA && !CPU_LOONGSON2EF
26202620
26212621config ARCH_SPARSEMEM_ENABLE
26222622 bool
@@ -2697,7 +2697,7 @@ config NODES_SHIFT
26972697
26982698config HW_PERF_EVENTS
26992699 bool "Enable hardware performance counter support for perf events"
2700- depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON3 )
2700+ depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON64 )
27012701 default y
27022702 help
27032703 Enable hardware performance counter support for perf events. If
0 commit comments