diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-08 05:59:23 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 05:59:23 -0400 |
commit | 2b4fa851b2f06fdb04cac808b57324f5e51e1578 (patch) | |
tree | 97db3ad5adda7683923630982f68b8b52c86e790 /arch/x86/Kconfig | |
parent | 3de352bbd86f890dd0c5e1c09a6a1b0b29e0f8ce (diff) | |
parent | 46f68e1c6b04a04772e828ff3bcd07ed708805c2 (diff) |
Merge branch 'x86/numa' into x86/devel
Conflicts:
arch/x86/Kconfig
arch/x86/kernel/e820.c
arch/x86/kernel/efi_64.c
arch/x86/kernel/mpparse.c
arch/x86/kernel/setup.c
arch/x86/kernel/setup_32.c
arch/x86/mm/init_64.c
include/asm-x86/proto.h
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 640dc62a7fa0..112afd368c77 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -121,7 +121,7 @@ config ARCH_HAS_CACHE_LINE_SIZE | |||
121 | def_bool y | 121 | def_bool y |
122 | 122 | ||
123 | config HAVE_SETUP_PER_CPU_AREA | 123 | config HAVE_SETUP_PER_CPU_AREA |
124 | def_bool X86_64 || (X86_SMP && !X86_VOYAGER) | 124 | def_bool X86_64_SMP || (X86_SMP && !X86_VOYAGER) |
125 | 125 | ||
126 | config HAVE_CPUMASK_OF_CPU_MAP | 126 | config HAVE_CPUMASK_OF_CPU_MAP |
127 | def_bool X86_64_SMP | 127 | def_bool X86_64_SMP |
@@ -579,7 +579,21 @@ config SWIOTLB | |||
579 | 579 | ||
580 | config IOMMU_HELPER | 580 | config IOMMU_HELPER |
581 | def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB) | 581 | def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB) |
582 | config MAXSMP | ||
583 | bool "Configure Maximum number of SMP Processors and NUMA Nodes" | ||
584 | depends on X86_64 && SMP | ||
585 | default n | ||
586 | help | ||
587 | Configure maximum number of CPUS and NUMA Nodes for this architecture. | ||
588 | If unsure, say N. | ||
582 | 589 | ||
590 | if MAXSMP | ||
591 | config NR_CPUS | ||
592 | int | ||
593 | default "4096" | ||
594 | endif | ||
595 | |||
596 | if !MAXSMP | ||
583 | config NR_CPUS | 597 | config NR_CPUS |
584 | int "Maximum number of CPUs (2-4096)" | 598 | int "Maximum number of CPUs (2-4096)" |
585 | range 2 4096 | 599 | range 2 4096 |
@@ -592,7 +606,8 @@ config NR_CPUS | |||
592 | minimum value which makes sense is 2. | 606 | minimum value which makes sense is 2. |
593 | 607 | ||
594 | This is purely to save memory - each supported CPU adds | 608 | This is purely to save memory - each supported CPU adds |
595 | approximately one kilobyte to the kernel image. | 609 | approximately eight kilobytes to the kernel image. |
610 | endif | ||
596 | 611 | ||
597 | config SCHED_SMT | 612 | config SCHED_SMT |
598 | bool "SMT (Hyperthreading) scheduler support" | 613 | bool "SMT (Hyperthreading) scheduler support" |
@@ -983,13 +998,25 @@ config NUMA_EMU | |||
983 | into virtual nodes when booted with "numa=fake=N", where N is the | 998 | into virtual nodes when booted with "numa=fake=N", where N is the |
984 | number of nodes. This is only useful for debugging. | 999 | number of nodes. This is only useful for debugging. |
985 | 1000 | ||
1001 | if MAXSMP | ||
1002 | |||
1003 | config NODES_SHIFT | ||
1004 | int | ||
1005 | default "9" | ||
1006 | endif | ||
1007 | |||
1008 | if !MAXSMP | ||
986 | config NODES_SHIFT | 1009 | config NODES_SHIFT |
987 | int "Max num nodes shift(1-9)" | 1010 | int "Maximum NUMA Nodes (as a power of 2)" |
988 | range 1 9 if X86_64 | 1011 | range 1 9 if X86_64 |
989 | default "6" if X86_64 | 1012 | default "6" if X86_64 |
990 | default "4" if X86_NUMAQ | 1013 | default "4" if X86_NUMAQ |
991 | default "3" | 1014 | default "3" |
992 | depends on NEED_MULTIPLE_NODES | 1015 | depends on NEED_MULTIPLE_NODES |
1016 | help | ||
1017 | Specify the maximum number of NUMA Nodes available on the target | ||
1018 | system. Increases memory reserved to accomodate various tables. | ||
1019 | endif | ||
993 | 1020 | ||
994 | config HAVE_ARCH_BOOTMEM_NODE | 1021 | config HAVE_ARCH_BOOTMEM_NODE |
995 | def_bool y | 1022 | def_bool y |