[PATCH 2/4] arm64: Initial defconfig for APM X-Gene SOC family
Arnd Bergmann
arnd at arndb.de
Sat Apr 20 06:27:29 EDT 2013
On Saturday 20 April 2013, Vinayak Kale wrote:
> Okay. What would be the good place to change CONFIG_NR_CPUS - a)
> defcofig or b) arch/arch64/Kconfig?
> Currently default value 4 is defined in Kconfig. I reckon this would
> eventually be set to a highest number of CPUs implemented by a soc
> among all the socs.
I think Kconfig would be best. Since this is a setting that is fundamentally
tied to the largest system you want to run on, you can do it like this:
config NR_CPUS
int "Maximum number of CPUs (2-256)"
range 2 256
depends on SMP
# These have to remain sorted largest to smallest
default "64" if XGENE
default "16" if FOO
default "4"
If you enable XGENE in defconfig, it will automatically get the appropriate
default here, and someone who does not care about XGENE will ge the next
smaller number he or she is building for.
Arnd
More information about the linux-arm-kernel
mailing list