summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-04-05 12:44:49 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-04-13 23:36:43 +1000
commitebbe9d7d3a2ca0d62f1a2c08c7e7a3e0a88cf999 (patch)
treef87ff54ca79a28ecff2ab658dfc1ed8c5e7a043c /arch/powerpc/platforms
parent590c369e7ecc00be736be39ae0c62d1b5d563a51 (diff)
downloadlinux-stable-ebbe9d7d3a2ca0d62f1a2c08c7e7a3e0a88cf999.tar.gz
linux-stable-ebbe9d7d3a2ca0d62f1a2c08c7e7a3e0a88cf999.tar.bz2
linux-stable-ebbe9d7d3a2ca0d62f1a2c08c7e7a3e0a88cf999.zip
powerpc: Allow platforms to force-enable CONFIG_SMP
Of the 64-bit Book3S platforms, only powermac supports booting on an actual non-SMP system. The other platforms can be built with SMP disabled, but it doesn't make a lot of sense given the CPUs they support are all multicore or multithreaded. So give platforms the option of forcing SMP=y. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/Kconfig.cputype8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index ef4c4b8fc547..ee87cb37c580 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -371,10 +371,16 @@ config PPC_PERF_CTRS
help
This enables the powerpc-specific perf_event back-end.
+config FORCE_SMP
+ # Allow platforms to force SMP=y by selecting this
+ bool
+ default n
+ select SMP
+
config SMP
depends on PPC_BOOK3S || PPC_BOOK3E || FSL_BOOKE || PPC_47x
select GENERIC_IRQ_MIGRATION
- bool "Symmetric multi-processing support"
+ bool "Symmetric multi-processing support" if !FORCE_SMP
---help---
This enables support for systems with more than one CPU. If you have
a system with only one CPU, say N. If you have a system with more