]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Define NR_CPUS all the time
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 7 May 2021 09:24:43 +0000 (09:24 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 17 May 2021 05:27:16 +0000 (15:27 +1000)
commitc6a428576dbe8481d6c0024d54aa5315b2409e1a
tree0c871c09eb86a7cbc7b903a40de6b1f7186dc43f
parent9cfb323fc7b732c99b1c3cb11f3548a4ed29414d
powerpc: Define NR_CPUS all the time

include/linux/threads.h defines a default value for CONFIG_NR_CPUS
but suggests the architectures should always define it.

So do it, when CONFIG_SMP is not selected set CONFIG_NR_CPUS to 1.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/afef0ec65a8ba8651bf4f6e4f4f08a8b6991dbfb.1620379469.git.christophe.leroy@csgroup.eu
arch/powerpc/platforms/Kconfig.cputype