lkml.org 
[lkml]   [2008]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 11/35] x86: enable MAXSMP
Set MAXSMP to enable CONFIG_CPUMASK_OFFSTACK which moves cpumask's off
the stack (and in structs) when using cpumask_var_t.

Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
arch/x86/Kconfig | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
--- linux-2.6.28.orig/arch/x86/Kconfig
+++ linux-2.6.28/arch/x86/Kconfig
@@ -573,6 +573,7 @@ config IOMMU_HELPER
config MAXSMP
bool "Configure Maximum number of SMP Processors and NUMA Nodes"
depends on X86_64 && SMP && DEBUG_KERNEL && EXPERIMENTAL
+ select CPUMASK_OFFSTACK
help
Configure maximum number of CPUS and NUMA Nodes for this
architecture (up to 4096!).
@@ -584,16 +585,16 @@ config MAXSMP
If unsure, say N.

config NR_CPUS
- int "Maximum number of CPUs (2-4096)" if !MAXSMP
- range 2 4096
depends on SMP
+ int "Maximum number of CPUs" if SMP && !MAXSMP
+ range 2 512 if SMP && !MAXSMP
default "4096" if MAXSMP
- default "32" if X86_NUMAQ || X86_SUMMIT || X86_BIGSMP || X86_ES7000
+ default "32" if X86_NUMAQ || X86_SUMMIT || X86_BIGSMP || X86_ES7000
default "8"
help
This allows you to specify the maximum number of CPUs which this
- kernel will support. The maximum supported value is 512 and the
- minimum value which makes sense is 2.
+ kernel will support. The maximum supported value is 512 (4096
+ if MAXSMP set) and the minimum value which makes sense is 2.

This is purely to save memory - each supported CPU adds
approximately one kilobyte to the kernel image.
--


\
 
 \ /
  Last update: 2008-10-23 04:15    [from the cache]
©2003-2011 Jasper Spaans