summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmerdabbelt@google.com>2021-02-26 21:21:15 +0100
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-02-27 06:20:30 +0100
commitf01e631cccab4b299cf005c42a3176595a3f3f9d (patch)
treef7b05e1962a41032d07e60ef45f2dab70c083f69 /arch
parentMerge tag 'riscv-for-linus-5.12-mw0' of git://git.kernel.org/pub/scm/linux/ke... (diff)
downloadlinux-f01e631cccab4b299cf005c42a3176595a3f3f9d.tar.xz
linux-f01e631cccab4b299cf005c42a3176595a3f3f9d.zip
RISC-V: Make NUMA depend on SMP
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index a998babc1237..85d626b8ce5e 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -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