]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Make NUMA depend on SMP
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Nov 2020 12:05:45 +0000 (23:05 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:09 +0000 (01:01 +1100)
commit90d7cc2ef55fc9ecfc1e9b2b256eca23c235b0ed
tree92202149a7dd985a14ac882c50fd12a78d62bbc3
parente65f32f56e1582bc7d3f02522c04925b1d7d03f1
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: kernel test robot <lkp@intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20201124120547.1940635-1-mpe@ellerman.id.au
arch/powerpc/Kconfig