aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/Kconfig37
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
562config IOMMU_HELPER 562config IOMMU_HELPER
563 def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB) 563 def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB)
564config 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
572if MAXSMP
565config NR_CPUS 573config NR_CPUS
566 int "Maximum number of CPUs (2-255)" 574 int
567 range 2 255 575 default "4096"
576endif
577
578if !MAXSMP
579config 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.
592endif
578 593
579config SCHED_SMT 594config 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
983if MAXSMP
984
985config NODES_SHIFT
986 int
987 default "9"
988endif
989
990if !MAXSMP
968config NODES_SHIFT 991config 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.
1001endif
975 1002
976config HAVE_ARCH_BOOTMEM_NODE 1003config HAVE_ARCH_BOOTMEM_NODE
977 def_bool y 1004 def_bool y