aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2012-09-10 07:41:45 -0400
committerIngo Molnar <mingo@kernel.org>2012-09-13 11:45:33 -0400
commit3120e25efdc0834c88e1c0f8394e2087444f8c19 (patch)
treec9830547896f4d84ea9063bf2d7cdd5ab6f4e143 /arch/x86/Kconfig
parentc206b9dcb1fc41b104db43e98f9b83a8c0c559ae (diff)
x86/Kconfig: Clean up Kconfig defaults
The main goal here is to have the resulting .config no carry any options that aren't enabled and can't be (i.e such where the default is "no" and can't be changed), so that if any such option later gets a user visible prompt, the user will actually be prompted on a "make ...oldconfig" rather than keeping the previously invisible option disabled. There's a little bit of other trivial cleanup mixed in here. Signed-off-by: Jan Beulich <jbeulich@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/r/504DEE19020000780009A285@nat28.tlf.novell.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r--arch/x86/Kconfig50
1 files changed, 30 insertions, 20 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 8ec3a1aa4abd..3fb871908ab2 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -7,11 +7,13 @@ config 64BIT
7 Say no to build a 32-bit kernel - formerly known as i386 7 Say no to build a 32-bit kernel - formerly known as i386
8 8
9config X86_32 9config X86_32
10 def_bool !64BIT 10 def_bool y
11 depends on !64BIT
11 select CLKSRC_I8253 12 select CLKSRC_I8253
12 13
13config X86_64 14config X86_64
14 def_bool 64BIT 15 def_bool y
16 depends on 64BIT
15 select X86_DEV_DMA_OPS 17 select X86_DEV_DMA_OPS
16 18
17### Arch settings 19### Arch settings
@@ -99,7 +101,8 @@ config X86
99 select GENERIC_STRNLEN_USER 101 select GENERIC_STRNLEN_USER
100 102
101config INSTRUCTION_DECODER 103config INSTRUCTION_DECODER
102 def_bool (KPROBES || PERF_EVENTS || UPROBES) 104 def_bool y
105 depends on KPROBES || PERF_EVENTS || UPROBES
103 106
104config OUTPUT_FORMAT 107config OUTPUT_FORMAT
105 string 108 string
@@ -127,13 +130,15 @@ config SBUS
127 bool 130 bool
128 131
129config NEED_DMA_MAP_STATE 132config NEED_DMA_MAP_STATE
130 def_bool (X86_64 || INTEL_IOMMU || DMA_API_DEBUG) 133 def_bool y
134 depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG
131 135
132config NEED_SG_DMA_LENGTH 136config NEED_SG_DMA_LENGTH
133 def_bool y 137 def_bool y
134 138
135config GENERIC_ISA_DMA 139config GENERIC_ISA_DMA
136 def_bool ISA_DMA_API 140 def_bool y
141 depends on ISA_DMA_API
137 142
138config GENERIC_BUG 143config GENERIC_BUG
139 def_bool y 144 def_bool y
@@ -150,13 +155,16 @@ config GENERIC_GPIO
150 bool 155 bool
151 156
152config ARCH_MAY_HAVE_PC_FDC 157config ARCH_MAY_HAVE_PC_FDC
153 def_bool ISA_DMA_API 158 def_bool y
159 depends on ISA_DMA_API
154 160
155config RWSEM_GENERIC_SPINLOCK 161config RWSEM_GENERIC_SPINLOCK
156 def_bool !X86_XADD 162 def_bool y
163 depends on !X86_XADD
157 164
158config RWSEM_XCHGADD_ALGORITHM 165config RWSEM_XCHGADD_ALGORITHM
159 def_bool X86_XADD 166 def_bool y
167 depends on X86_XADD
160 168
161config GENERIC_CALIBRATE_DELAY 169config GENERIC_CALIBRATE_DELAY
162 def_bool y 170 def_bool y
@@ -752,7 +760,8 @@ config SWIOTLB
752 3 GB of memory. If unsure, say Y. 760 3 GB of memory. If unsure, say Y.
753 761
754config IOMMU_HELPER 762config IOMMU_HELPER
755 def_bool (CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU) 763 def_bool y
764 depends on CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU
756 765
757config MAXSMP 766config MAXSMP
758 bool "Enable Maximum number of SMP Processors and NUMA Nodes" 767 bool "Enable Maximum number of SMP Processors and NUMA Nodes"
@@ -1159,10 +1168,12 @@ config X86_PAE
1159 consumes more pagetable space per process. 1168 consumes more pagetable space per process.
1160 1169
1161config ARCH_PHYS_ADDR_T_64BIT 1170config ARCH_PHYS_ADDR_T_64BIT
1162 def_bool X86_64 || X86_PAE 1171 def_bool y
1172 depends on X86_64 || X86_PAE
1163 1173
1164config ARCH_DMA_ADDR_T_64BIT 1174config ARCH_DMA_ADDR_T_64BIT
1165 def_bool X86_64 || HIGHMEM64G 1175 def_bool y
1176 depends on X86_64 || HIGHMEM64G
1166 1177
1167config DIRECT_GBPAGES 1178config DIRECT_GBPAGES
1168 bool "Enable 1GB pages for kernel pagetables" if EXPERT 1179 bool "Enable 1GB pages for kernel pagetables" if EXPERT
@@ -1285,8 +1296,8 @@ config ARCH_SELECT_MEMORY_MODEL
1285 depends on ARCH_SPARSEMEM_ENABLE 1296 depends on ARCH_SPARSEMEM_ENABLE
1286 1297
1287config ARCH_MEMORY_PROBE 1298config ARCH_MEMORY_PROBE
1288 def_bool X86_64 1299 def_bool y
1289 depends on MEMORY_HOTPLUG 1300 depends on X86_64 && MEMORY_HOTPLUG
1290 1301
1291config ARCH_PROC_KCORE_TEXT 1302config ARCH_PROC_KCORE_TEXT
1292 def_bool y 1303 def_bool y
@@ -1975,7 +1986,6 @@ config PCI_MMCONFIG
1975 1986
1976config PCI_CNB20LE_QUIRK 1987config PCI_CNB20LE_QUIRK
1977 bool "Read CNB20LE Host Bridge Windows" if EXPERT 1988 bool "Read CNB20LE Host Bridge Windows" if EXPERT
1978 default n
1979 depends on PCI && EXPERIMENTAL 1989 depends on PCI && EXPERIMENTAL
1980 help 1990 help
1981 Read the PCI windows out of the CNB20LE host bridge. This allows 1991 Read the PCI windows out of the CNB20LE host bridge. This allows
@@ -2186,18 +2196,18 @@ config COMPAT
2186 depends on IA32_EMULATION || X86_X32 2196 depends on IA32_EMULATION || X86_X32
2187 select ARCH_WANT_OLD_COMPAT_IPC 2197 select ARCH_WANT_OLD_COMPAT_IPC
2188 2198
2199if COMPAT
2189config COMPAT_FOR_U64_ALIGNMENT 2200config COMPAT_FOR_U64_ALIGNMENT
2190 def_bool COMPAT 2201 def_bool y
2191 depends on X86_64
2192 2202
2193config SYSVIPC_COMPAT 2203config SYSVIPC_COMPAT
2194 def_bool y 2204 def_bool y
2195 depends on COMPAT && SYSVIPC 2205 depends on SYSVIPC
2196 2206
2197config KEYS_COMPAT 2207config KEYS_COMPAT
2198 bool 2208 def_bool y
2199 depends on COMPAT && KEYS 2209 depends on KEYS
2200 default y 2210endif
2201 2211
2202endmenu 2212endmenu
2203 2213