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 Signed-off-by: Rusty Russell --- 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. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/