From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] arm64: Initial defconfig for APM X-Gene SOC family
Date: Sat, 20 Apr 2013 12:27:29 +0200 [thread overview]
Message-ID: <201304201227.29341.arnd@arndb.de> (raw)
In-Reply-To: <CAPrCYkcc8owdKPUth2uDwugfjKV3i2MY9XHwbqCvn8UOL5s+6Q@mail.gmail.com>
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
next prev parent reply other threads:[~2013-04-20 10:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-20 7:15 [PATCH 0/4] arm64: Initial patch-set for APM X-Gene SOC family Vinayak Kale
2013-04-20 7:15 ` [PATCH 1/4] arm64: Add Kconfig option " Vinayak Kale
2013-04-20 7:15 ` [PATCH 2/4] arm64: Initial defconfig " Vinayak Kale
2013-04-20 7:35 ` Arnd Bergmann
2013-04-20 9:31 ` Vinayak Kale
2013-04-20 10:27 ` Arnd Bergmann [this message]
2013-04-22 17:31 ` Catalin Marinas
2013-04-22 19:25 ` Arnd Bergmann
2013-04-20 7:15 ` [PATCH 3/4] arm64: Add defines for APM ARMv8 implementation Vinayak Kale
2013-04-20 7:15 ` [PATCH 4/4] arm64: Add initial DTS for APM X-Gene Storm SOC and APM Mustang board Vinayak Kale
2013-04-20 7:39 ` Arnd Bergmann
2013-04-20 9:19 ` Vinayak Kale
2013-04-22 11:14 ` Mark Rutland
2013-04-22 12:23 ` Vinayak Kale
2013-04-22 12:59 ` Mark Rutland
2013-04-22 13:27 ` Vinayak Kale
2013-04-22 20:59 ` Rob Herring
2013-04-23 5:27 ` Vinayak Kale
2013-04-23 18:11 ` Olof Johansson
2013-04-24 6:21 ` Vinayak Kale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201304201227.29341.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.