diff mbox

[RFC,1/3] powerpc: Allow platforms to force-enable CONFIG_SMP

Message ID 1491360291-30299-1-git-send-email-mpe@ellerman.id.au (mailing list archive)
State Accepted
Commit ebbe9d7d3a2ca0d62f1a2c08c7e7a3e0a88cf999
Headers show

Commit Message

Michael Ellerman April 5, 2017, 2:44 a.m. UTC
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>
---
 arch/powerpc/platforms/Kconfig.cputype | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Michael Ellerman April 13, 2017, 1:40 p.m. UTC | #1
Michael Ellerman <mpe@ellerman.id.au> writes:

> 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.

For the record I'm planning to merge this.

cheers

> diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
> index 99b0ae8acb78..5c011e4baf0b 100644
> --- a/arch/powerpc/platforms/Kconfig.cputype
> +++ b/arch/powerpc/platforms/Kconfig.cputype
> @@ -371,9 +371,15 @@ 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
> -	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
> -- 
> 2.7.4
Michael Ellerman April 19, 2017, 3:47 a.m. UTC | #2
On Wed, 2017-04-05 at 02:44:49 UTC, Michael Ellerman wrote:
> 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>

Series applied to powerpc next.

https://git.kernel.org/powerpc/c/ebbe9d7d3a2ca0d62f1a2c08c7e7a3

cheers
diff mbox

Patch

diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index 99b0ae8acb78..5c011e4baf0b 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -371,9 +371,15 @@  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
-	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