diff options
Diffstat (limited to 'arch/x86_64/Kconfig')
-rw-r--r-- | arch/x86_64/Kconfig | 58 |
1 files changed, 46 insertions, 12 deletions
diff --git a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig index 010d2265f1cf..d4275537b25b 100644 --- a/arch/x86_64/Kconfig +++ b/arch/x86_64/Kconfig | |||
@@ -96,6 +96,19 @@ config AUDIT_ARCH | |||
96 | bool | 96 | bool |
97 | default y | 97 | default y |
98 | 98 | ||
99 | config GENERIC_BUG | ||
100 | bool | ||
101 | default y | ||
102 | depends on BUG | ||
103 | |||
104 | config ARCH_HAS_ILOG2_U32 | ||
105 | bool | ||
106 | default n | ||
107 | |||
108 | config ARCH_HAS_ILOG2_U64 | ||
109 | bool | ||
110 | default n | ||
111 | |||
99 | source "init/Kconfig" | 112 | source "init/Kconfig" |
100 | 113 | ||
101 | 114 | ||
@@ -122,7 +135,7 @@ endchoice | |||
122 | 135 | ||
123 | choice | 136 | choice |
124 | prompt "Processor family" | 137 | prompt "Processor family" |
125 | default MK8 | 138 | default GENERIC_CPU |
126 | 139 | ||
127 | config MK8 | 140 | config MK8 |
128 | bool "AMD-Opteron/Athlon64" | 141 | bool "AMD-Opteron/Athlon64" |
@@ -130,16 +143,31 @@ config MK8 | |||
130 | Optimize for AMD Opteron/Athlon64/Hammer/K8 CPUs. | 143 | Optimize for AMD Opteron/Athlon64/Hammer/K8 CPUs. |
131 | 144 | ||
132 | config MPSC | 145 | config MPSC |
133 | bool "Intel EM64T" | 146 | bool "Intel P4 / older Netburst based Xeon" |
134 | help | 147 | help |
135 | Optimize for Intel Pentium 4 and Xeon CPUs with Intel | 148 | Optimize for Intel Pentium 4 and older Nocona/Dempsey Xeon CPUs |
136 | Extended Memory 64 Technology(EM64T). For details see | 149 | with Intel Extended Memory 64 Technology(EM64T). For details see |
137 | <http://www.intel.com/technology/64bitextensions/>. | 150 | <http://www.intel.com/technology/64bitextensions/>. |
151 | Note the the latest Xeons (Xeon 51xx and 53xx) are not based on the | ||
152 | Netburst core and shouldn't use this option. You can distingush them | ||
153 | using the cpu family field | ||
154 | in /proc/cpuinfo. Family 15 is a older Xeon, Family 6 a newer one | ||
155 | (this rule only applies to system that support EM64T) | ||
156 | |||
157 | config MCORE2 | ||
158 | bool "Intel Core2 / newer Xeon" | ||
159 | help | ||
160 | Optimize for Intel Core2 and newer Xeons (51xx) | ||
161 | You can distingush the newer Xeons from the older ones using | ||
162 | the cpu family field in /proc/cpuinfo. 15 is a older Xeon | ||
163 | (use CONFIG_MPSC then), 6 is a newer one. This rule only | ||
164 | applies to CPUs that support EM64T. | ||
138 | 165 | ||
139 | config GENERIC_CPU | 166 | config GENERIC_CPU |
140 | bool "Generic-x86-64" | 167 | bool "Generic-x86-64" |
141 | help | 168 | help |
142 | Generic x86-64 CPU. | 169 | Generic x86-64 CPU. |
170 | Run equally well on all x86-64 CPUs. | ||
143 | 171 | ||
144 | endchoice | 172 | endchoice |
145 | 173 | ||
@@ -149,12 +177,12 @@ endchoice | |||
149 | config X86_L1_CACHE_BYTES | 177 | config X86_L1_CACHE_BYTES |
150 | int | 178 | int |
151 | default "128" if GENERIC_CPU || MPSC | 179 | default "128" if GENERIC_CPU || MPSC |
152 | default "64" if MK8 | 180 | default "64" if MK8 || MCORE2 |
153 | 181 | ||
154 | config X86_L1_CACHE_SHIFT | 182 | config X86_L1_CACHE_SHIFT |
155 | int | 183 | int |
156 | default "7" if GENERIC_CPU || MPSC | 184 | default "7" if GENERIC_CPU || MPSC |
157 | default "6" if MK8 | 185 | default "6" if MK8 || MCORE2 |
158 | 186 | ||
159 | config X86_INTERNODE_CACHE_BYTES | 187 | config X86_INTERNODE_CACHE_BYTES |
160 | int | 188 | int |
@@ -344,11 +372,6 @@ config ARCH_DISCONTIGMEM_ENABLE | |||
344 | depends on NUMA | 372 | depends on NUMA |
345 | default y | 373 | default y |
346 | 374 | ||
347 | |||
348 | config ARCH_DISCONTIGMEM_ENABLE | ||
349 | def_bool y | ||
350 | depends on NUMA | ||
351 | |||
352 | config ARCH_DISCONTIGMEM_DEFAULT | 375 | config ARCH_DISCONTIGMEM_DEFAULT |
353 | def_bool y | 376 | def_bool y |
354 | depends on NUMA | 377 | depends on NUMA |
@@ -455,6 +478,17 @@ config CALGARY_IOMMU | |||
455 | Normally the kernel will make the right choice by itself. | 478 | Normally the kernel will make the right choice by itself. |
456 | If unsure, say Y. | 479 | If unsure, say Y. |
457 | 480 | ||
481 | config CALGARY_IOMMU_ENABLED_BY_DEFAULT | ||
482 | bool "Should Calgary be enabled by default?" | ||
483 | default y | ||
484 | depends on CALGARY_IOMMU | ||
485 | help | ||
486 | Should Calgary be enabled by default? if you choose 'y', Calgary | ||
487 | will be used (if it exists). If you choose 'n', Calgary will not be | ||
488 | used even if it exists. If you choose 'n' and would like to use | ||
489 | Calgary anyway, pass 'iommu=calgary' on the kernel command line. | ||
490 | If unsure, say Y. | ||
491 | |||
458 | # need this always selected by IOMMU for the VIA workaround | 492 | # need this always selected by IOMMU for the VIA workaround |
459 | config SWIOTLB | 493 | config SWIOTLB |
460 | bool | 494 | bool |
@@ -550,7 +584,7 @@ config SECCOMP | |||
550 | If unsure, say Y. Only embedded should say N here. | 584 | If unsure, say Y. Only embedded should say N here. |
551 | 585 | ||
552 | config CC_STACKPROTECTOR | 586 | config CC_STACKPROTECTOR |
553 | bool "Enable -fstack-protector buffer overflow detection (EXPRIMENTAL)" | 587 | bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)" |
554 | depends on EXPERIMENTAL | 588 | depends on EXPERIMENTAL |
555 | help | 589 | help |
556 | This option turns on the -fstack-protector GCC feature. This | 590 | This option turns on the -fstack-protector GCC feature. This |