1 # Put here option for CPU selection and depending optimization
5 prompt "Processor family"
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
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.
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.
48 If you don't know what to do, choose "386".
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
59 bool "586/K5/5x86/6x86/6x86MX"
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.
66 bool "Pentium-Classic"
68 Select this for a Pentium Classic processor with the RDTSC (Read
69 Time Stamp Counter) instruction for benchmarking.
74 Select this for a Pentium with the MMX graphics/multimedia
75 extended instructions.
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.
85 bool "Pentium-II/Celeron(pre-Coppermine)"
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
94 bool "Pentium-III/Celeron(Coppermine)/Pentium-III Xeon"
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
104 Select this for Intel Pentium M (not Pentium-4 M)
108 bool "Core 2/newer Xeon"
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)
115 bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon"
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.
123 CPUIDs: F[0-6][1-A] (in /proc/cpuinfo show = cpu family : 15 )
126 Pentiums (Pentium 4, Pentium D, Celeron, Celeron D) corename:
131 -Extreme Edition (Gallatin)
137 Xeons (Intel Xeon, Xeon MP, Xeon LV, Xeon MV) corename:
150 bool "K6/K6-II/K6-III"
152 Select this for an AMD K6-family processor. Enables use of
153 some extended instructions, and passes appropriate optimization
157 bool "Athlon/Duron/K7"
159 Select this for an AMD Athlon K7-family processor. Enables use of
160 some extended instructions, and passes appropriate optimization
164 bool "Opteron/Athlon64/Hammer/K8"
166 Select this for an AMD Opteron or Athlon64 Hammer-family processor. Enables
167 use of some extended instructions, and passes appropriate optimization
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).
180 Select this for a Transmeta Efficeon processor.
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.
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.
197 bool "Winchip-2A/Winchip-3"
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
208 Select this for a Geode GX1 (Cyrix MediaGX) chip.
213 Select this for AMD Geode GX and LX processors.
216 bool "CyrixIII/VIA-C3"
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
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.
227 bool "VIA C3-2 (Nehemiah)"
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.
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.
242 bool "Generic x86 support"
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.
249 This is really intended for distributors who need more
250 generic optimizations.
255 # Define implied options from the CPU selection here
262 config X86_L1_CACHE_SHIFT
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
274 config RWSEM_GENERIC_SPINLOCK
279 config RWSEM_XCHGADD_ALGORITHM
284 config ARCH_HAS_ILOG2_U32
288 config ARCH_HAS_ILOG2_U64
292 config GENERIC_CALIBRATE_DELAY
296 config X86_PPRO_FENCE
298 depends on M686 || M586MMX || M586TSC || M586 || M486 || M386 || MGEODEGX1
303 depends on M586MMX || M586TSC || M586 || M486 || M386
306 config X86_WP_WORKS_OK
326 config X86_ALIGNMENT_16
328 depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODEGX1
333 depends on MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || MK8 || MEFFICEON || MCORE2 || MVIAC7
336 config X86_INTEL_USERCOPY
338 depends on MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M586MMX || X86_GENERIC || MK8 || MK7 || MEFFICEON || MCORE2
341 config X86_USE_PPRO_CHECKSUM
343 depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON || MGEODE_LX || MCORE2
348 depends on (MCYRIXIII || MK7 || MGEODE_LX) && !UML
353 depends on (MWINCHIP3D || MWINCHIP2 || MWINCHIPC6) && MTRR
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
361 # this should be set for all -march=.. options where the compiler
365 depends on (MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7)
368 config X86_MINIMUM_CPU_FAMILY
370 default "4" if X86_XADD || X86_CMPXCHG || X86_BSWAP || X86_WP_WORKS_OK