提交 25395cd2 编写于 作者: M Michael Ellerman

powerpc: Make NUMA depend on SMP

Our Kconfig allows NUMA to be enabled without SMP, but none of
our defconfigs use that combination. This means it can easily be
broken inadvertently by code changes, which has happened recently.

Although it's theoretically possible to have a machine with a single
CPU and multiple memory nodes, I can't think of any real systems where
that's the case. Even so if such a system exists, it can just run an
SMP kernel anyway.

So to avoid the need to add extra #ifdefs and/or build breaks, make
NUMA depend on SMP.
Reported-by: Nkernel test robot <lkp@intel.com>
Reported-by: NRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Reviewed-by: NSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Reviewed-by: NRandy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20201124120547.1940635-1-mpe@ellerman.id.au
上级 894fa235
...@@ -660,7 +660,7 @@ config IRQ_ALL_CPUS ...@@ -660,7 +660,7 @@ config IRQ_ALL_CPUS
config NUMA config NUMA
bool "NUMA support" bool "NUMA support"
depends on PPC64 depends on PPC64 && SMP
default y if SMP && PPC_PSERIES default y if SMP && PPC_PSERIES
config NODES_SHIFT config NODES_SHIFT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册