summaryrefslogtreecommitdiffstats
path: root/arch/sparc/Kconfig
diff options
context:
space:
mode:
authorJane Chu <jane.chu@oracle.com>2017-06-06 14:32:29 -0600
committerDavid S. Miller <davem@davemloft.net>2017-06-06 16:41:47 -0400
commitc79a13734d104b5b147d7cb0870276ccdd660dae (patch)
tree497507e0696e5b570300c88b9370c82d742ae47f /arch/sparc/Kconfig
parent1b4af13ff2cc6897557bb0b8d9e2fad4fa4d67aa (diff)
downloadop-kernel-dev-c79a13734d104b5b147d7cb0870276ccdd660dae.zip
op-kernel-dev-c79a13734d104b5b147d7cb0870276ccdd660dae.tar.gz
arch/sparc: support NR_CPUS = 4096
Linux SPARC64 limits NR_CPUS to 4064 because init_cpu_send_mondo_info() only allocates a single page for NR_CPUS mondo entries. Thus we cannot use all 4096 CPUs on some SPARC platforms. To fix, allocate (2^order) pages where order is set according to the size of cpu_list for possible cpus. Since cpu_list_pa and cpu_mondo_block_pa are not used in asm code, there are no imm13 offsets from the base PA that will break because they can only reach one page. Orabug: 25505750 Signed-off-by: Jane Chu <jane.chu@oracle.com> Reviewed-by: Bob Picco <bob.picco@oracle.com> Reviewed-by: Atish Patra <atish.patra@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/Kconfig')
-rw-r--r--arch/sparc/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index e544ac1..b558c9e 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -192,9 +192,9 @@ config NR_CPUS
int "Maximum number of CPUs"
depends on SMP
range 2 32 if SPARC32
- range 2 1024 if SPARC64
+ range 2 4096 if SPARC64
default 32 if SPARC32
- default 64 if SPARC64
+ default 4096 if SPARC64
source kernel/Kconfig.hz
OpenPOWER on IntegriCloud