aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/Kconfig.cpu
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-10-25 15:04:16 -0400
committerSam Ravnborg <sam@ravnborg.org>2007-10-25 16:37:02 -0400
commit47572387d58a9584c60ebbbdee56fc92c627f16f (patch)
tree04ac61fdc84b080dac72c30a06cee449b6c3e847 /arch/i386/Kconfig.cpu
parente703f75d620824739148142c3734ae8223e4d1f5 (diff)
x86: move i386 and x86_64 Kconfig files to x86 directory
After a small change in kconfig Makefile we could move all x86 Kconfig files to x86 directory. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/i386/Kconfig.cpu')
-rw-r--r--arch/i386/Kconfig.cpu372
1 files changed, 0 insertions, 372 deletions
diff --git a/arch/i386/Kconfig.cpu b/arch/i386/Kconfig.cpu
deleted file mode 100644
index 0e2adadf5905..000000000000
--- a/arch/i386/Kconfig.cpu
+++ /dev/null
@@ -1,372 +0,0 @@
1# Put here option for CPU selection and depending optimization
2if !X86_ELAN
3
4choice
5 prompt "Processor family"
6 default M686
7
8config M386
9 bool "386"
10 depends on !UML
11 ---help---
12 This is the processor type of your CPU. This information is used for
13 optimizing purposes. In order to compile a kernel that can run on
14 all x86 CPU types (albeit not optimally fast), you can specify
15 "386" here.
16
17 The kernel will not necessarily run on earlier architectures than
18 the one you have chosen, e.g. a Pentium optimized kernel will run on
19 a PPro, but not necessarily on a i486.
20
21 Here are the settings recommended for greatest speed:
22 - "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI
23 486DLC/DLC2, UMC 486SX-S and NexGen Nx586. Only "386" kernels
24 will run on a 386 class machine.
25 - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or
26 SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S.
27 - "586" for generic Pentium CPUs lacking the TSC
28 (time stamp counter) register.
29 - "Pentium-Classic" for the Intel Pentium.
30 - "Pentium-MMX" for the Intel Pentium MMX.
31 - "Pentium-Pro" for the Intel Pentium Pro.
32 - "Pentium-II" for the Intel Pentium II or pre-Coppermine Celeron.
33 - "Pentium-III" for the Intel Pentium III or Coppermine Celeron.
34 - "Pentium-4" for the Intel Pentium 4 or P4-based Celeron.
35 - "K6" for the AMD K6, K6-II and K6-III (aka K6-3D).
36 - "Athlon" for the AMD K7 family (Athlon/Duron/Thunderbird).
37 - "Crusoe" for the Transmeta Crusoe series.
38 - "Efficeon" for the Transmeta Efficeon series.
39 - "Winchip-C6" for original IDT Winchip.
40 - "Winchip-2" for IDT Winchip 2.
41 - "Winchip-2A" for IDT Winchips with 3dNow! capabilities.
42 - "GeodeGX1" for Geode GX1 (Cyrix MediaGX).
43 - "Geode GX/LX" For AMD Geode GX and LX processors.
44 - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3.
45 - "VIA C3-2" for VIA C3-2 "Nehemiah" (model 9 and above).
46 - "VIA C7" for VIA C7.
47
48 If you don't know what to do, choose "386".
49
50config M486
51 bool "486"
52 help
53 Select this for a 486 series processor, either Intel or one of the
54 compatible processors from AMD, Cyrix, IBM, or Intel. Includes DX,
55 DX2, and DX4 variants; also SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or
56 U5S.
57
58config M586
59 bool "586/K5/5x86/6x86/6x86MX"
60 help
61 Select this for an 586 or 686 series processor such as the AMD K5,
62 the Cyrix 5x86, 6x86 and 6x86MX. This choice does not
63 assume the RDTSC (Read Time Stamp Counter) instruction.
64
65config M586TSC
66 bool "Pentium-Classic"
67 help
68 Select this for a Pentium Classic processor with the RDTSC (Read
69 Time Stamp Counter) instruction for benchmarking.
70
71config M586MMX
72 bool "Pentium-MMX"
73 help
74 Select this for a Pentium with the MMX graphics/multimedia
75 extended instructions.
76
77config M686
78 bool "Pentium-Pro"
79 help
80 Select this for Intel Pentium Pro chips. This enables the use of
81 Pentium Pro extended instructions, and disables the init-time guard
82 against the f00f bug found in earlier Pentiums.
83
84config MPENTIUMII
85 bool "Pentium-II/Celeron(pre-Coppermine)"
86 help
87 Select this for Intel chips based on the Pentium-II and
88 pre-Coppermine Celeron core. This option enables an unaligned
89 copy optimization, compiles the kernel with optimization flags
90 tailored for the chip, and applies any applicable Pentium Pro
91 optimizations.
92
93config MPENTIUMIII
94 bool "Pentium-III/Celeron(Coppermine)/Pentium-III Xeon"
95 help
96 Select this for Intel chips based on the Pentium-III and
97 Celeron-Coppermine core. This option enables use of some
98 extended prefetch instructions in addition to the Pentium II
99 extensions.
100
101config MPENTIUMM
102 bool "Pentium M"
103 help
104 Select this for Intel Pentium M (not Pentium-4 M)
105 notebook chips.
106
107config MCORE2
108 bool "Core 2/newer Xeon"
109 help
110 Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and 53xx)
111 CPUs. You can distinguish newer from older Xeons by the CPU family
112 in /proc/cpuinfo. Newer ones have 6 and older ones 15 (not a typo)
113
114config MPENTIUM4
115 bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon"
116 help
117 Select this for Intel Pentium 4 chips. This includes the
118 Pentium 4, Pentium D, P4-based Celeron and Xeon, and
119 Pentium-4 M (not Pentium M) chips. This option enables compile
120 flags optimized for the chip, uses the correct cache line size, and
121 applies any applicable optimizations.
122
123 CPUIDs: F[0-6][1-A] (in /proc/cpuinfo show = cpu family : 15 )
124
125 Select this for:
126 Pentiums (Pentium 4, Pentium D, Celeron, Celeron D) corename:
127 -Willamette
128 -Northwood
129 -Mobile Pentium 4
130 -Mobile Pentium 4 M
131 -Extreme Edition (Gallatin)
132 -Prescott
133 -Prescott 2M
134 -Cedar Mill
135 -Presler
136 -Smithfiled
137 Xeons (Intel Xeon, Xeon MP, Xeon LV, Xeon MV) corename:
138 -Foster
139 -Prestonia
140 -Gallatin
141 -Nocona
142 -Irwindale
143 -Cranford
144 -Potomac
145 -Paxville
146 -Dempsey
147
148
149config MK6
150 bool "K6/K6-II/K6-III"
151 help
152 Select this for an AMD K6-family processor. Enables use of
153 some extended instructions, and passes appropriate optimization
154 flags to GCC.
155
156config MK7
157 bool "Athlon/Duron/K7"
158 help
159 Select this for an AMD Athlon K7-family processor. Enables use of
160 some extended instructions, and passes appropriate optimization
161 flags to GCC.
162
163config MK8
164 bool "Opteron/Athlon64/Hammer/K8"
165 help
166 Select this for an AMD Opteron or Athlon64 Hammer-family processor. Enables
167 use of some extended instructions, and passes appropriate optimization
168 flags to GCC.
169
170config MCRUSOE
171 bool "Crusoe"
172 help
173 Select this for a Transmeta Crusoe processor. Treats the processor
174 like a 586 with TSC, and sets some GCC optimization flags (like a
175 Pentium Pro with no alignment requirements).
176
177config MEFFICEON
178 bool "Efficeon"
179 help
180 Select this for a Transmeta Efficeon processor.
181
182config MWINCHIPC6
183 bool "Winchip-C6"
184 help
185 Select this for an IDT Winchip C6 chip. Linux and GCC
186 treat this chip as a 586TSC with some extended instructions
187 and alignment requirements.
188
189config MWINCHIP2
190 bool "Winchip-2"
191 help
192 Select this for an IDT Winchip-2. Linux and GCC
193 treat this chip as a 586TSC with some extended instructions
194 and alignment requirements.
195
196config MWINCHIP3D
197 bool "Winchip-2A/Winchip-3"
198 help
199 Select this for an IDT Winchip-2A or 3. Linux and GCC
200 treat this chip as a 586TSC with some extended instructions
201 and alignment requirements. Also enable out of order memory
202 stores for this CPU, which can increase performance of some
203 operations.
204
205config MGEODEGX1
206 bool "GeodeGX1"
207 help
208 Select this for a Geode GX1 (Cyrix MediaGX) chip.
209
210config MGEODE_LX
211 bool "Geode GX/LX"
212 help
213 Select this for AMD Geode GX and LX processors.
214
215config MCYRIXIII
216 bool "CyrixIII/VIA-C3"
217 help
218 Select this for a Cyrix III or C3 chip. Presently Linux and GCC
219 treat this chip as a generic 586. Whilst the CPU is 686 class,
220 it lacks the cmov extension which gcc assumes is present when
221 generating 686 code.
222 Note that Nehemiah (Model 9) and above will not boot with this
223 kernel due to them lacking the 3DNow! instructions used in earlier
224 incarnations of the CPU.
225
226config MVIAC3_2
227 bool "VIA C3-2 (Nehemiah)"
228 help
229 Select this for a VIA C3 "Nehemiah". Selecting this enables usage
230 of SSE and tells gcc to treat the CPU as a 686.
231 Note, this kernel will not boot on older (pre model 9) C3s.
232
233config MVIAC7
234 bool "VIA C7"
235 help
236 Select this for a VIA C7. Selecting this uses the correct cache
237 shift and tells gcc to treat the CPU as a 686.
238
239endchoice
240
241config X86_GENERIC
242 bool "Generic x86 support"
243 help
244 Instead of just including optimizations for the selected
245 x86 variant (e.g. PII, Crusoe or Athlon), include some more
246 generic optimizations as well. This will make the kernel
247 perform better on x86 CPUs other than that selected.
248
249 This is really intended for distributors who need more
250 generic optimizations.
251
252endif
253
254#
255# Define implied options from the CPU selection here
256#
257config X86_CMPXCHG
258 bool
259 depends on !M386
260 default y
261
262config X86_L1_CACHE_SHIFT
263 int
264 default "7" if MPENTIUM4 || X86_GENERIC
265 default "4" if X86_ELAN || M486 || M386 || MGEODEGX1
266 default "5" if MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE_LX
267 default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MVIAC7
268
269config X86_XADD
270 bool
271 depends on !M386
272 default y
273
274config RWSEM_GENERIC_SPINLOCK
275 bool
276 depends on !X86_XADD
277 default y
278
279config RWSEM_XCHGADD_ALGORITHM
280 bool
281 depends on X86_XADD
282 default y
283
284config ARCH_HAS_ILOG2_U32
285 bool
286 default n
287
288config ARCH_HAS_ILOG2_U64
289 bool
290 default n
291
292config GENERIC_CALIBRATE_DELAY
293 bool
294 default y
295
296config X86_PPRO_FENCE
297 bool
298 depends on M686 || M586MMX || M586TSC || M586 || M486 || M386 || MGEODEGX1
299 default y
300
301config X86_F00F_BUG
302 bool
303 depends on M586MMX || M586TSC || M586 || M486 || M386
304 default y
305
306config X86_WP_WORKS_OK
307 bool
308 depends on !M386
309 default y
310
311config X86_INVLPG
312 bool
313 depends on !M386
314 default y
315
316config X86_BSWAP
317 bool
318 depends on !M386
319 default y
320
321config X86_POPAD_OK
322 bool
323 depends on !M386
324 default y
325
326config X86_ALIGNMENT_16
327 bool
328 depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
329 default y
330
331config X86_GOOD_APIC
332 bool
333 depends on MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || MK8 || MEFFICEON || MCORE2 || MVIAC7
334 default y
335
336config X86_INTEL_USERCOPY
337 bool
338 depends on MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M586MMX || X86_GENERIC || MK8 || MK7 || MEFFICEON || MCORE2
339 default y
340
341config X86_USE_PPRO_CHECKSUM
342 bool
343 depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON || MGEODE_LX || MCORE2
344 default y
345
346config X86_USE_3DNOW
347 bool
348 depends on (MCYRIXIII || MK7 || MGEODE_LX) && !UML
349 default y
350
351config X86_OOSTORE
352 bool
353 depends on (MWINCHIP3D || MWINCHIP2 || MWINCHIPC6) && MTRR
354 default y
355
356config X86_TSC
357 bool
358 depends on (MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MVIAC7 || MGEODEGX1 || MGEODE_LX || MCORE2) && !X86_NUMAQ
359 default y
360
361# this should be set for all -march=.. options where the compiler
362# generates cmov.
363config X86_CMOV
364 bool
365 depends on (MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7)
366 default y
367
368config X86_MINIMUM_CPU_FAMILY
369 int
370 default "4" if X86_XADD || X86_CMPXCHG || X86_BSWAP || X86_WP_WORKS_OK
371 default "3"
372