diff mbox

[6/6] powerpc/kconfig: Cell CPU options should depend on PPC_CELL

Message ID 1444338557-14988-6-git-send-email-mpe@ellerman.id.au (mailing list archive)
State Rejected
Headers show

Commit Message

Michael Ellerman Oct. 8, 2015, 9:09 p.m. UTC
If none of the Cell platforms are enabled then the resulting kernel can
never boot on a Cell machine, and so there's no sense offering to tune
or build for Cell CPUs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/platforms/Kconfig.cputype | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Thomas Huth Oct. 9, 2015, 5:48 a.m. UTC | #1
On 08/10/15 23:09, Michael Ellerman wrote:
> If none of the Cell platforms are enabled then the resulting kernel can
> never boot on a Cell machine, and so there's no sense offering to tune
> or build for Cell CPUs.
> 
> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
> ---
>  arch/powerpc/platforms/Kconfig.cputype | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
> index 60b28e63c137..03c53f4418ad 100644
> --- a/arch/powerpc/platforms/Kconfig.cputype
> +++ b/arch/powerpc/platforms/Kconfig.cputype
> @@ -91,7 +91,7 @@ config GENERIC_CPU
>  
>  config CELL_CPU
>  	bool "Cell Broadband Engine"
> -	depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
> +	depends on PPC_CELL
>  
>  config POWER4_CPU
>  	bool "POWER4"
> @@ -140,7 +140,7 @@ config 6xx
>  
>  config TUNE_CELL
>  	bool "Optimize for Cell Broadband Engine"
> -	depends on PPC64 && PPC_BOOK3S
> +	depends on PPC_CELL
>  	help
>  	  Cause the compiler to optimize for the PPE of the Cell Broadband
>  	  Engine. This will make the code run considerably faster on Cell

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox

Patch

diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index 60b28e63c137..03c53f4418ad 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -91,7 +91,7 @@  config GENERIC_CPU
 
 config CELL_CPU
 	bool "Cell Broadband Engine"
-	depends on PPC_BOOK3S_64 && !CPU_LITTLE_ENDIAN
+	depends on PPC_CELL
 
 config POWER4_CPU
 	bool "POWER4"
@@ -140,7 +140,7 @@  config 6xx
 
 config TUNE_CELL
 	bool "Optimize for Cell Broadband Engine"
-	depends on PPC64 && PPC_BOOK3S
+	depends on PPC_CELL
 	help
 	  Cause the compiler to optimize for the PPE of the Cell Broadband
 	  Engine. This will make the code run considerably faster on Cell