[PATCH 2/6] powerpc: Move CONFIG_PPC64 into CPU selection

Kumar Gala galak at kernel.crashing.org
Wed May 2 23:35:43 EST 2007


On May 2, 2007, at 6:47 AM, Arnd Bergmann wrote:

> Currently, PPC64 is a top level configuration option in
> arch/powerpc/Kconfig, which is somewhat unconventional.
>
> Moving it into the CPU selection menu is a natural choice,
> and is transparent to the rest of the configuration logic.
>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

I know Paul made a very conscious decisions to make the 64-bit choice  
a top level config option when we moved to arch/powerpc.  This is  
patch effective reverts back to how we did things in arch/ppc.

I'll let it up to him to remind us why he wanted that since I dont  
remember.

- k

> Index: linux-2.6/arch/powerpc/platforms/Kconfig.cputype
> ===================================================================
> --- linux-2.6.orig/arch/powerpc/platforms/Kconfig.cputype
> +++ linux-2.6/arch/powerpc/platforms/Kconfig.cputype
> @@ -1,37 +1,24 @@
> -config PPC64
> -	bool "64-bit kernel"
> -	default n
> -	help
> -	  This option selects whether a 32-bit or a 64-bit kernel
> -	  will be built.
> -
>  menu "Processor support"
>  choice
>  	prompt "Processor Type"
> -	depends on PPC32
>  	default 6xx
> -
> -config CLASSIC32
> -	bool "52xx/6xx/7xx/74xx"
> -	select PPC_FPU
> -	select 6xx
>  	help
>  	  There are four families of PowerPC chips supported.  The more  
> common
>  	  types (601, 603, 604, 740, 750, 7400), the Motorola embedded
> -	  versions (821, 823, 850, 855, 860, 52xx, 82xx, 83xx), the AMCC
> -	  embedded versions (403 and 405) and the high end 64 bit Power
> -	  processors (POWER 3, POWER4, and IBM PPC970 also known as G5).
> -
> -	  This option is the catch-all for 6xx types, including some of the
> -	  embedded versions.  Unless there is see an option for the specific
> -	  chip family you are using, you want this option.
> +	  versions (8xx, 55xx, 85xx), the AMCC embedded version (403, 405,
> +	  440, 460) and the 64 bit processors (POWER 3, POWER4, POWER5,
> +	  POWER6, PowerPC 970, Cell/B.E., PA6T).
>
> -	  You do not want this if you are building a kernel for a 64 bit
> -	  IBM RS/6000 or an Apple G5, choose 6xx.
> +	  If unsure, select 52xx/6xx/7xx/74xx.
>
> -	  If unsure, select this option
> +config PPC64
> +	bool "any 64 bit PowerPC"
> +	select PPC_FPU
>
> -	  Note that the kernel runs in 32-bit mode even on 64-bit chips.
> +config CLASSIC32
> +	bool "52xx/6xx/7xx/74xx"
> +	select PPC_FPU
> +	select 6xx
>
>  config PPC_82xx
>  	bool "Freescale 82xx"
> @@ -119,7 +106,6 @@ config E500
>
>  config PPC_FPU
>  	bool
> -	default y if PPC64
>
>  config BOOKE
>  	bool
>
> --




More information about the Linuxppc-dev mailing list