RISC-V: Make NUMA depend on SMP
authorPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 26 Feb 2021 20:21:15 +0000 (12:21 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 27 Feb 2021 05:20:30 +0000 (21:20 -0800)
In theory these are orthogonal, but in practice all NUMA systems are
SMP.  NUMA && !SMP doesn't build, everyone else is coupling them, and I
don't really see any value in supporting that configuration.

Fixes: 4f0e8eef772e ("riscv: Add numa support for riscv64 platform")
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Suggested-by: Atish Patra <atishp@atishpatra.org>
Reported-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Tested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig

index a998bab..85d626b 100644 (file)
@@ -314,6 +314,7 @@ endchoice
 # Common NUMA Features
 config NUMA
        bool "NUMA Memory Allocation and Scheduler Support"
+       depends on SMP
        select GENERIC_ARCH_NUMA
        select OF_NUMA
        select ARCH_SUPPORTS_NUMA_BALANCING