Skip to contentSkip to conversation

riscv: Make NUMA depend on MMU

PATCH In review Kefeng Wang 2 participants 2 messages Mar 30, 2021 – Apr 2, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: Make NUMA depend on MMU

NUMA is useless when NOMMU, and it leads some build error, make it depend on MMU.

---
 arch/riscv/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Kconfig +1 -1
index 0368453adc30..958676c6d5ce 100644
@@ -317,7 +317,7 @@ endchoice
 # Common NUMA Features
 config NUMA
 	bool "NUMA Memory Allocation and Scheduler Support"
-	depends on SMP
+	depends on SMP && MMU
 	select GENERIC_ARCH_NUMA
 	select OF_NUMA
 	select ARCH_SUPPORTS_NUMA_BALANCING
Signature · 7 lines
2.26.2


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
maintainer
#1 lore raw
Quoted 14 lines · On Tue, 30 Mar 2021 06:25:31 PDT (-0700), [email protected] wrote:

NUMA is useless when NOMMU, and it leads some build error, make it depend on MMU.

---
 arch/riscv/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Kconfig +0 -0
index 0368453adc30..958676c6d5ce 100644

arch/riscv/Kconfig endchoice · line 323

Quoted 8 lines
arch/riscv/Kconfig +1 -1
@@ -317,7 +317,7 @@ endchoice
 # Common NUMA Features
 config NUMA
 	bool "NUMA Memory Allocation and Scheduler Support"
-	depends on SMP
+	depends on SMP && MMU
 	select GENERIC_ARCH_NUMA
 	select OF_NUMA
 	select ARCH_SUPPORTS_NUMA_BALANCING

Thanks, this is on fixes.

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv