diff options
author | Mike Travis <travis@sgi.com> | 2008-05-12 15:21:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 05:30:42 -0400 |
commit | 1184dc2ffe2c8fb9afb766d870850f2c3165ef25 (patch) | |
tree | ca73c4f92b85b1930fabd164a49140b36befb567 /arch/x86 | |
parent | 7496b60654e759d0b9008b80908e80727904b3c4 (diff) |
x86: modify Kconfig to allow up to 4096 cpus
* Increase the limit of NR_CPUS to 4096 and introduce a boolean
called "MAXSMP" which when set (e.g. "allyesconfig"), will set
NR_CPUS = 4096 and NODES_SHIFT = 9 (512).
* Changed max setting for NODES_SHIFT from 15 to 9 to accurately
reflect the real limit.
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/Kconfig | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bf07b6f50fa1..2e325521e5e9 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -561,20 +561,35 @@ config SWIOTLB | |||
561 | 561 | ||
562 | config IOMMU_HELPER | 562 | config IOMMU_HELPER |
563 | def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB) | 563 | def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB) |
564 | config MAXSMP | ||
565 | bool "Configure Maximum number of SMP Processors and NUMA Nodes" | ||
566 | depends on X86_64 && SMP | ||
567 | default n | ||
568 | help | ||
569 | Configure maximum number of CPUS and NUMA Nodes for this architecture. | ||
570 | If unsure, say N. | ||
564 | 571 | ||
572 | if MAXSMP | ||
565 | config NR_CPUS | 573 | config NR_CPUS |
566 | int "Maximum number of CPUs (2-255)" | 574 | int |
567 | range 2 255 | 575 | default "4096" |
576 | endif | ||
577 | |||
578 | if !MAXSMP | ||
579 | config NR_CPUS | ||
580 | int "Maximum number of CPUs (2-4096)" | ||
581 | range 2 4096 | ||
568 | depends on SMP | 582 | depends on SMP |
569 | default "32" if X86_NUMAQ || X86_SUMMIT || X86_BIGSMP || X86_ES7000 | 583 | default "32" if X86_NUMAQ || X86_SUMMIT || X86_BIGSMP || X86_ES7000 |
570 | default "8" | 584 | default "8" |
571 | help | 585 | help |
572 | This allows you to specify the maximum number of CPUs which this | 586 | This allows you to specify the maximum number of CPUs which this |
573 | kernel will support. The maximum supported value is 255 and the | 587 | kernel will support. The maximum supported value is 4096 and the |
574 | minimum value which makes sense is 2. | 588 | minimum value which makes sense is 2. |
575 | 589 | ||
576 | This is purely to save memory - each supported CPU adds | 590 | This is purely to save memory - each supported CPU adds |
577 | approximately eight kilobytes to the kernel image. | 591 | approximately eight kilobytes to the kernel image. |
592 | endif | ||
578 | 593 | ||
579 | config SCHED_SMT | 594 | config SCHED_SMT |
580 | bool "SMT (Hyperthreading) scheduler support" | 595 | bool "SMT (Hyperthreading) scheduler support" |
@@ -965,13 +980,25 @@ config NUMA_EMU | |||
965 | into virtual nodes when booted with "numa=fake=N", where N is the | 980 | into virtual nodes when booted with "numa=fake=N", where N is the |
966 | number of nodes. This is only useful for debugging. | 981 | number of nodes. This is only useful for debugging. |
967 | 982 | ||
983 | if MAXSMP | ||
984 | |||
985 | config NODES_SHIFT | ||
986 | int | ||
987 | default "9" | ||
988 | endif | ||
989 | |||
990 | if !MAXSMP | ||
968 | config NODES_SHIFT | 991 | config NODES_SHIFT |
969 | int "Max num nodes shift(1-9)" | 992 | int "Maximum NUMA Nodes (as a power of 2)" |
970 | range 1 9 if X86_64 | 993 | range 1 9 if X86_64 |
971 | default "6" if X86_64 | 994 | default "6" if X86_64 |
972 | default "4" if X86_NUMAQ | 995 | default "4" if X86_NUMAQ |
973 | default "3" | 996 | default "3" |
974 | depends on NEED_MULTIPLE_NODES | 997 | depends on NEED_MULTIPLE_NODES |
998 | help | ||
999 | Specify the maximum number of NUMA Nodes available on the target | ||
1000 | system. Increases memory reserved to accomodate various tables. | ||
1001 | endif | ||
975 | 1002 | ||
976 | config HAVE_ARCH_BOOTMEM_NODE | 1003 | config HAVE_ARCH_BOOTMEM_NODE |
977 | def_bool y | 1004 | def_bool y |