x86: enable MAXSMP

Previous thread: x86: fix build error with post-merge of tip/cpus4096 and rr-for-ingo/master. by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: cpumask: make irq_set_affinity() take a const struct cpumask by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)
From: Linux Kernel Mailing List
Date: Friday, January 2, 2009 - 2:05 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=36f510...
Commit:     36f5101a60de8f79c0d1ca06e50660bf5129e02c
Parent:     c8cae544bba6aee0f5cb0756dbab1a71d2c68737
Author:     Mike Travis <travis@sgi.com>
AuthorDate: Tue Dec 16 17:33:51 2008 -0800
Committer:  Mike Travis <travis@sgi.com>
CommitDate: Tue Dec 16 17:40:55 2008 -0800

    x86: enable MAXSMP
    
    Impact: activates new off-stack cpumask code on MAXSMP (non-default) x86 configs
    
    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>
    Acked-by: Ingo Molnar <mingo@elte.hy>
---
 arch/x86/Kconfig |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index d99eeb7..1fd4435 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -591,16 +591,17 @@ config IOMMU_HELPER
 
 config MAXSMP
 	bool "Configure Maximum number of SMP Processors and NUMA Nodes"
-	depends on X86_64 && SMP && BROKEN
+	depends on X86_64 && SMP && DEBUG_KERNEL && EXPERIMENTAL
+	select CPUMASK_OFFSTACK
 	default n
 	help
 	  Configure maximum number of CPUS and NUMA Nodes for this architecture.
 	  If unsure, say N.
 
 config NR_CPUS
-	int "Maximum number of CPUs (2-512)" if !MAXSMP
-	range 2 512
 	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 "8"
--

Previous thread: x86: fix build error with post-merge of tip/cpus4096 and rr-for-ingo/master. by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: cpumask: make irq_set_affinity() take a const struct cpumask by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)