Kconfig 93.1 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
Sam Ravnborg's avatar
Sam Ravnborg committed
2 3
# Select 32 or 64 bit
config 64BIT
4
	bool "64-bit kernel" if ARCH = "x86"
5
	default ARCH != "i386"
Ingo Molnar's avatar
Ingo Molnar committed
6
	---help---
Sam Ravnborg's avatar
Sam Ravnborg committed
7 8 9 10
	  Say yes to build a 64-bit kernel - formerly known as x86_64
	  Say no to build a 32-bit kernel - formerly known as i386

config X86_32
11 12
	def_bool y
	depends on !64BIT
13 14 15 16 17 18 19 20
	# Options that are inherently 32-bit kernel only:
	select ARCH_WANT_IPC_PARSE_VERSION
	select CLKSRC_I8253
	select CLONE_BACKWARDS
	select HAVE_AOUT
	select HAVE_GENERIC_DMA_COHERENT
	select MODULES_USE_ELF_REL
	select OLD_SIGACTION
Sam Ravnborg's avatar
Sam Ravnborg committed
21 22

config X86_64
23 24
	def_bool y
	depends on 64BIT
25
	# Options that are inherently 64-bit kernel only:
26
	select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
27 28 29 30 31
	select ARCH_SUPPORTS_INT128
	select ARCH_USE_CMPXCHG_LOCKREF
	select HAVE_ARCH_SOFT_DIRTY
	select MODULES_USE_ELF_RELA
	select X86_DEV_DMA_OPS
32

33 34 35 36 37 38
#
# Arch settings
#
# ( Note that options that are marked 'if X86_64' could in principle be
#   ported to 32-bit as well. )
#
39
config X86
40
	def_bool y
41 42 43
	#
	# Note: keep this list sorted alphabetically
	#
44 45 46 47 48
	select ACPI_LEGACY_TABLES_LOOKUP	if ACPI
	select ACPI_SYSTEM_POWER_STATES_SUPPORT	if ACPI
	select ANON_INODES
	select ARCH_CLOCKSOURCE_DATA
	select ARCH_DISCARD_MEMBLOCK
49
	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
50
	select ARCH_HAS_DEBUG_VIRTUAL
51
	select ARCH_HAS_DEVMEM_IS_ALLOWED
52
	select ARCH_HAS_ELF_RANDOMIZE
53
	select ARCH_HAS_FAST_MULTIPLIER
54
	select ARCH_HAS_FORTIFY_SOURCE
55
	select ARCH_HAS_GCOV_PROFILE_ALL
Dmitry Vyukov's avatar
Dmitry Vyukov committed
56
	select ARCH_HAS_KCOV			if X86_64
57
	select ARCH_HAS_PMEM_API		if X86_64
58
	# Causing hangs/crashes, see the commit that added this change for details.
59
	select ARCH_HAS_REFCOUNT
60
	select ARCH_HAS_UACCESS_FLUSHCACHE	if X86_64
61
	select ARCH_HAS_SET_MEMORY
62
	select ARCH_HAS_SG_CHAIN
63 64
	select ARCH_HAS_STRICT_KERNEL_RWX
	select ARCH_HAS_STRICT_MODULE_RWX
65
	select ARCH_HAS_UBSAN_SANITIZE_ALL
66
	select ARCH_HAS_ZONE_DEVICE		if X86_64
67 68
	select ARCH_HAVE_NMI_SAFE_CMPXCHG
	select ARCH_MIGHT_HAVE_ACPI_PDC		if ACPI
69
	select ARCH_MIGHT_HAVE_PC_PARPORT
70
	select ARCH_MIGHT_HAVE_PC_SERIO
71
	select ARCH_SUPPORTS_ATOMIC_RMW
72
	select ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
73 74 75 76
	select ARCH_SUPPORTS_NUMA_BALANCING	if X86_64
	select ARCH_USE_BUILTIN_BSWAP
	select ARCH_USE_QUEUED_RWLOCKS
	select ARCH_USE_QUEUED_SPINLOCKS
77
	select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
78
	select ARCH_WANTS_DYNAMIC_TASK_STRUCT
79
	select ARCH_WANTS_THP_SWAP		if X86_64
80 81 82 83 84
	select BUILDTIME_EXTABLE_SORT
	select CLKEVT_I8253
	select CLOCKSOURCE_VALIDATE_LAST_CYCLE
	select CLOCKSOURCE_WATCHDOG
	select DCACHE_WORD_ACCESS
85 86
	select EDAC_ATOMIC_SCRUB
	select EDAC_SUPPORT
87 88 89 90 91
	select GENERIC_CLOCKEVENTS
	select GENERIC_CLOCKEVENTS_BROADCAST	if X86_64 || (X86_32 && X86_LOCAL_APIC)
	select GENERIC_CLOCKEVENTS_MIN_ADJUST
	select GENERIC_CMOS_UPDATE
	select GENERIC_CPU_AUTOPROBE
92
	select GENERIC_CPU_VULNERABILITIES
Mark Salter's avatar
Mark Salter committed
93
	select GENERIC_EARLY_IOREMAP
94 95
	select GENERIC_FIND_FIRST_BIT
	select GENERIC_IOMAP
96
	select GENERIC_IRQ_EFFECTIVE_AFF_MASK	if SMP
97
	select GENERIC_IRQ_MIGRATION		if SMP
98 99 100 101 102 103 104
	select GENERIC_IRQ_PROBE
	select GENERIC_IRQ_SHOW
	select GENERIC_PENDING_IRQ		if SMP
	select GENERIC_SMP_IDLE_THREAD
	select GENERIC_STRNCPY_FROM_USER
	select GENERIC_STRNLEN_USER
	select GENERIC_TIME_VSYSCALL
105
	select HARDLOCKUP_CHECK_TIMESTAMP	if X86_64
106 107 108 109 110 111
	select HAVE_ACPI_APEI			if ACPI
	select HAVE_ACPI_APEI_NMI		if ACPI
	select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
	select HAVE_ARCH_AUDITSYSCALL
	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
	select HAVE_ARCH_JUMP_LABEL
112
	select HAVE_ARCH_KASAN			if X86_64
113
	select HAVE_ARCH_KGDB
114 115
	select HAVE_ARCH_MMAP_RND_BITS		if MMU
	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if MMU && COMPAT
116
	select HAVE_ARCH_COMPAT_MMAP_BASES	if MMU && COMPAT
117 118 119
	select HAVE_ARCH_SECCOMP_FILTER
	select HAVE_ARCH_TRACEHOOK
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
120
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD if X86_64
121
	select HAVE_ARCH_VMAP_STACK		if X86_64
122
	select HAVE_ARCH_WITHIN_STACK_FRAMES
123 124 125
	select HAVE_CC_STACKPROTECTOR
	select HAVE_CMPXCHG_DOUBLE
	select HAVE_CMPXCHG_LOCAL
126
	select HAVE_CONTEXT_TRACKING		if X86_64 && !IPIPE
127
	select HAVE_COPY_THREAD_TLS
128
	select HAVE_C_RECORDMCOUNT
129 130 131 132
	select HAVE_DEBUG_KMEMLEAK
	select HAVE_DEBUG_STACKOVERFLOW
	select HAVE_DMA_API_DEBUG
	select HAVE_DMA_CONTIGUOUS
133
	select HAVE_DYNAMIC_FTRACE
134
	select HAVE_DYNAMIC_FTRACE_WITH_REGS
135
	select HAVE_EBPF_JIT			if X86_64
136
	select HAVE_EFFICIENT_UNALIGNED_ACCESS
Jiri Slaby's avatar
Jiri Slaby committed
137
	select HAVE_EXIT_THREAD
138
	select HAVE_FENTRY			if X86_64 || DYNAMIC_FTRACE
139 140 141
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_FUNCTION_GRAPH_TRACER
	select HAVE_FUNCTION_TRACER
Emese Revfy's avatar
Emese Revfy committed
142
	select HAVE_GCC_PLUGINS
143 144 145 146 147
	select HAVE_HW_BREAKPOINT
	select HAVE_IDE
	select HAVE_IOREMAP_PROT
	select HAVE_IRQ_EXIT_ON_IRQ_STACK	if X86_64
	select HAVE_IRQ_TIME_ACCOUNTING
148
	select HAVE_IPIPE_SUPPORT		if X86_64
Philippe Gerum's avatar
Philippe Gerum committed
149 150
	select HAVE_IPIPE_TRACER_SUPPORT
	select IPIPE_HAVE_SAFE_THREAD_INFO if IPIPE
Philippe Gerum's avatar
Philippe Gerum committed
151
	select IPIPE_WANT_PTE_PINNING if IPIPE
152
	select IPIPE_HAVE_VM_NOTIFIER if IPIPE
153
	select HAVE_KERNEL_BZIP2
154 155
	select HAVE_KERNEL_GZIP
	select HAVE_KERNEL_LZ4
156
	select HAVE_KERNEL_LZMA
157
	select HAVE_KERNEL_LZO
158 159 160 161 162 163 164 165
	select HAVE_KERNEL_XZ
	select HAVE_KPROBES
	select HAVE_KPROBES_ON_FTRACE
	select HAVE_KRETPROBES
	select HAVE_KVM
	select HAVE_LIVEPATCH			if X86_64
	select HAVE_MEMBLOCK
	select HAVE_MEMBLOCK_NODE_MAP
166
	select HAVE_MIXED_BREAKPOINTS_REGS
167
	select HAVE_MOD_ARCH_SPECIFIC
168
	select HAVE_NMI
169 170 171 172
	select HAVE_OPROFILE
	select HAVE_OPTPROBES
	select HAVE_PCSPKR_PLATFORM
	select HAVE_PERF_EVENTS
173
	select HAVE_PERF_EVENTS_NMI
174
	select HAVE_HARDLOCKUP_DETECTOR_PERF	if PERF_EVENTS && HAVE_PERF_EVENTS_NMI
175
	select HAVE_PERF_REGS
176
	select HAVE_PERF_USER_STACK_DUMP
177
	select HAVE_RCU_TABLE_FREE
178
	select HAVE_RCU_TABLE_INVALIDATE	if HAVE_RCU_TABLE_FREE
179
	select HAVE_REGS_AND_STACK_ACCESS_API
180
	select HAVE_RELIABLE_STACKTRACE		if X86_64 && UNWINDER_FRAME_POINTER && STACK_VALIDATION
181
	select HAVE_STACK_VALIDATION		if X86_64
182 183
	select HAVE_SYSCALL_TRACEPOINTS
	select HAVE_UNSTABLE_SCHED_CLOCK
184
	select HAVE_USER_RETURN_NOTIFIER
185
	select HOTPLUG_SMT			if SMP
186
	select IRQ_FORCED_THREADING
187
	select PCI_LOCKLESS_CONFIG
188
	select PERF_EVENTS
189
	select RTC_LIB
190
	select RTC_MC146818_LIB
191
	select SPARSE_IRQ
192
	select SRCU
193
	select SYSCTL_EXCEPTION_TRACE
194
	select THREAD_INFO_IN_TASK
195 196 197
	select USER_STACKTRACE_SUPPORT
	select VIRT_TO_BUS
	select X86_FEATURE_NAMES		if PROC_FS
198

199
config INSTRUCTION_DECODER
200 201
	def_bool y
	depends on KPROBES || PERF_EVENTS || UPROBES
202

203 204 205 206 207
config OUTPUT_FORMAT
	string
	default "elf32-i386" if X86_32
	default "elf64-x86-64" if X86_64

208
config ARCH_DEFCONFIG
209
	string
210 211
	default "arch/x86/configs/i386_defconfig" if X86_32
	default "arch/x86/configs/x86_64_defconfig" if X86_64
212

213
config LOCKDEP_SUPPORT
214
	def_bool y
215 216

config STACKTRACE_SUPPORT
217
	def_bool y
218 219

config MMU
220
	def_bool y
221

222 223 224 225 226 227 228 229 230 231 232 233 234 235
config ARCH_MMAP_RND_BITS_MIN
	default 28 if 64BIT
	default 8

config ARCH_MMAP_RND_BITS_MAX
	default 32 if 64BIT
	default 16

config ARCH_MMAP_RND_COMPAT_BITS_MIN
	default 8

config ARCH_MMAP_RND_COMPAT_BITS_MAX
	default 16

236 237 238
config SBUS
	bool

239
config NEED_DMA_MAP_STATE
240
	def_bool y
241
	depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB
242

243
config NEED_SG_DMA_LENGTH
244
	def_bool y
245

246
config GENERIC_ISA_DMA
247 248
	def_bool y
	depends on ISA_DMA_API
249 250

config GENERIC_BUG
251
	def_bool y
252
	depends on BUG
253 254 255 256
	select GENERIC_BUG_RELATIVE_POINTERS if X86_64

config GENERIC_BUG_RELATIVE_POINTERS
	bool
257 258

config GENERIC_HWEIGHT
259
	def_bool y
260 261

config ARCH_MAY_HAVE_PC_FDC
262 263
	def_bool y
	depends on ISA_DMA_API
264

265
config RWSEM_XCHGADD_ALGORITHM
266
	def_bool y
267 268 269 270

config GENERIC_CALIBRATE_DELAY
	def_bool y

271 272 273
config ARCH_HAS_CPU_RELAX
	def_bool y

274 275 276
config ARCH_HAS_CACHE_LINE_SIZE
	def_bool y

277
config HAVE_SETUP_PER_CPU_AREA
278
	def_bool y
279

280 281 282 283
config NEED_PER_CPU_EMBED_FIRST_CHUNK
	def_bool y

config NEED_PER_CPU_PAGE_FIRST_CHUNK
284 285
	def_bool y

286 287 288
config ARCH_HIBERNATION_POSSIBLE
	def_bool y

Johannes Berg's avatar
Johannes Berg committed
289 290 291
config ARCH_SUSPEND_POSSIBLE
	def_bool y

292 293 294
config ARCH_WANT_HUGE_PMD_SHARE
	def_bool y

295 296 297
config ARCH_WANT_GENERAL_HUGETLB
	def_bool y

298
config ZONE_DMA32
299
	def_bool y if X86_64
300 301

config AUDIT_ARCH
302
	def_bool y if X86_64
303

304 305 306
config ARCH_SUPPORTS_OPTIMIZED_INLINING
	def_bool y

Akinobu Mita's avatar
Akinobu Mita committed
307 308 309
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
	def_bool y

310 311 312 313 314
config KASAN_SHADOW_OFFSET
	hex
	depends on KASAN
	default 0xdffffc0000000000

315 316
config HAVE_INTEL_TXT
	def_bool y
317
	depends on INTEL_IOMMU && ACPI
318

319 320 321 322 323 324 325 326
config X86_32_SMP
	def_bool y
	depends on X86_32 && SMP

config X86_64_SMP
	def_bool y
	depends on X86_64 && SMP

327 328
config X86_32_LAZY_GS
	def_bool y
329
	depends on X86_32 && !CC_STACKPROTECTOR
330

331 332 333
config ARCH_SUPPORTS_UPROBES
	def_bool y

334 335 336
config FIX_EARLYCON_MEM
	def_bool y

337 338
config PGTABLE_LEVELS
	int
339
	default 5 if X86_5LEVEL
340 341 342 343
	default 4 if X86_64
	default 3 if X86_PAE
	default 2

344
source "init/Kconfig"
345
source "kernel/Kconfig.freezer"
346

347 348
menu "Processor type and features"

349 350 351 352 353 354 355 356 357 358
config ZONE_DMA
	bool "DMA memory allocation support" if EXPERT
	default y
	help
	  DMA memory allocation support allows devices with less than 32-bit
	  addressing to allocate within the first 16MB of address space.
	  Disable if no such devices will be used.

	  If unsure, say Y.

359 360 361 362
config SMP
	bool "Symmetric multi-processing support"
	---help---
	  This enables support for systems with more than one CPU. If you have
363 364
	  a system with only one CPU, say N. If you have a system with more
	  than one CPU, say Y.
365

366
	  If you say N here, the kernel will run on uni- and multiprocessor
367 368
	  machines, but will use only one CPU of a multiprocessor machine. If
	  you say Y here, the kernel will run on many, but not all,
369
	  uniprocessor machines. On a uniprocessor machine, the kernel
370 371 372 373 374 375 376 377 378 379 380
	  will run faster if you say N here.

	  Note that if you say Y here and choose architecture "586" or
	  "Pentium" under "Processor family", the kernel will not work on 486
	  architectures. Similarly, multiprocessor kernels for the "PPro"
	  architecture may not work on all Pentium based boards.

	  People using multiprocessor machines who say Y here should also say
	  Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
	  Management" code will be disabled if you say Y here.

Paul Bolle's avatar
Paul Bolle committed
381
	  See also <file:Documentation/x86/i386/IO-APIC.txt>,
382
	  <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
383 384 385 386
	  <http://www.tldp.org/docs.html#howto>.

	  If you don't know what to do here, say N.

387 388 389 390 391 392 393 394 395 396 397
config X86_FEATURE_NAMES
	bool "Processor feature human-readable names" if EMBEDDED
	default y
	---help---
	  This option compiles in a table of x86 feature bits and corresponding
	  names.  This is required to support /proc/cpuinfo and a few kernel
	  messages.  You can disable this to save space, at the expense of
	  making those few kernel messages show numeric feature bits instead.

	  If in doubt, say Y.

398 399 400 401 402 403 404 405 406 407 408
config X86_FAST_FEATURE_TESTS
	bool "Fast CPU feature tests" if EMBEDDED
	default y
	---help---
	  Some fast-paths in the kernel depend on the capabilities of the CPU.
	  Say Y here for the kernel to patch in the appropriate code at runtime
	  based on the capabilities of the CPU. The infrastructure for patching
	  code at runtime takes up some additional space; space-constrained
	  embedded systems may wish to say N here to produce smaller, slightly
	  slower code.

Yinghai Lu's avatar
Yinghai Lu committed
409 410
config X86_X2APIC
	bool "Support x2apic"
411
	depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
Yinghai Lu's avatar
Yinghai Lu committed
412 413 414 415 416 417 418 419
	---help---
	  This enables x2apic support on CPUs that have this feature.

	  This allows 32-bit apic IDs (so it can support very large systems),
	  and accesses the local apic via MSRs not via mmio.

	  If you don't know what to do here, say N.

420
config X86_MPPARSE
421
	bool "Enable MPS table" if ACPI || SFI
422
	default y
423
	depends on X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
424
	---help---
425 426 427
	  For old smp systems that do not have proper acpi support. Newer systems
	  (esp with 64bit cpus) with acpi support, MADT and DSDT will override it

428 429 430
config X86_BIGSMP
	bool "Support for big SMP systems with more than 8 CPUs"
	depends on X86_32 && SMP
Ingo Molnar's avatar
Ingo Molnar committed
431
	---help---
432
	  This option is needed for the systems that have more than 8 CPUs
433

434 435 436 437
config GOLDFISH
       def_bool y
       depends on X86_GOLDFISH

438 439 440
config RETPOLINE
	bool "Avoid speculative indirect branches in kernel"
	default y
441
	select STACK_VALIDATION if HAVE_STACK_VALIDATION
442 443 444 445 446 447
	help
	  Compile kernel with the retpoline compiler options to guard against
	  kernel-to-user data leaks by avoiding speculative indirect
	  branches. Requires a compiler with -mindirect-branch=thunk-extern
	  support for full protection. The kernel may run slower.

448 449
config INTEL_RDT
	bool "Intel Resource Director Technology support"
450 451
	default n
	depends on X86 && CPU_SUP_INTEL
452
	select KERNFS
453
	help
454 455 456 457
	  Select to enable resource allocation and monitoring which are
	  sub-features of Intel Resource Director Technology(RDT). More
	  information about RDT can be found in the Intel x86
	  Architecture Software Developer Manual.
458 459 460

	  Say N if unsure.

461
if X86_32
462 463 464
config X86_EXTENDED_PLATFORM
	bool "Support for extended (non-PC) x86 platforms"
	default y
Ingo Molnar's avatar
Ingo Molnar committed
465
	---help---
466 467 468 469
	  If you disable this option then the kernel will only support
	  standard PC platforms. (which covers the vast majority of
	  systems out there.)

470 471
	  If you enable this option then you'll be able to select support
	  for the following (non-PC) 32 bit x86 platforms:
472
		Goldfish (Android emulator)
473 474 475
		AMD Elan
		RDC R-321x SoC
		SGI 320/540 (Visual Workstation)
476
		STA2X11-based (e.g. Northville)
477
		Moorestown MID devices
478 479 480

	  If you have one of these systems, or if you want to build a
	  generic distribution kernel, say Y here - otherwise say N.
481
endif
482

483 484 485 486 487 488 489 490 491 492 493
if X86_64
config X86_EXTENDED_PLATFORM
	bool "Support for extended (non-PC) x86 platforms"
	default y
	---help---
	  If you disable this option then the kernel will only support
	  standard PC platforms. (which covers the vast majority of
	  systems out there.)

	  If you enable this option then you'll be able to select support
	  for the following (non-PC) 64 bit x86 platforms:
Steffen Persvold's avatar
Steffen Persvold committed
494
		Numascale NumaChip
495 496 497 498 499 500
		ScaleMP vSMP
		SGI Ultraviolet

	  If you have one of these systems, or if you want to build a
	  generic distribution kernel, say Y here - otherwise say N.
endif
501 502
# This is an alphabetically sorted list of 64 bit extended platforms
# Please maintain the alphabetic order if and when there are additions
Steffen Persvold's avatar
Steffen Persvold committed
503 504 505 506 507 508 509
config X86_NUMACHIP
	bool "Numascale NumaChip"
	depends on X86_64
	depends on X86_EXTENDED_PLATFORM
	depends on NUMA
	depends on SMP
	depends on X86_X2APIC
510
	depends on PCI_MMCONFIG
Steffen Persvold's avatar
Steffen Persvold committed
511 512 513 514
	---help---
	  Adds support for Numascale NumaChip large-SMP systems. Needed to
	  enable more than ~168 cores.
	  If you don't have one of these, you should say N here.
515

516 517
config X86_VSMP
	bool "ScaleMP vSMP"
518
	select HYPERVISOR_GUEST
519 520 521
	select PARAVIRT
	depends on X86_64 && PCI
	depends on X86_EXTENDED_PLATFORM
522
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
523
	---help---
524 525 526
	  Support for ScaleMP vSMP systems.  Say 'Y' here if this kernel is
	  supposed to run on these EM64T-based machines.  Only choose this option
	  if you have one of these machines.
527

528 529 530
config X86_UV
	bool "SGI Ultraviolet"
	depends on X86_64
531
	depends on X86_EXTENDED_PLATFORM
532
	depends on NUMA
533
	depends on EFI
534
	depends on X86_X2APIC
535
	depends on PCI
Ingo Molnar's avatar
Ingo Molnar committed
536
	---help---
537 538 539
	  This option is needed in order to support SGI Ultraviolet systems.
	  If you don't have one of these, you should say N here.

540 541
# Following is an alphabetically sorted list of 32 bit extended platforms
# Please maintain the alphabetic order if and when there are additions
542

543 544
config X86_GOLDFISH
       bool "Goldfish (Virtual Platform)"
545
       depends on X86_EXTENDED_PLATFORM
546 547 548 549 550
       ---help---
	 Enable support for the Goldfish virtual platform used primarily
	 for Android development. Unless you are building for the Android
	 Goldfish emulator say N here.

551 552 553 554
config X86_INTEL_CE
	bool "CE4100 TV platform"
	depends on PCI
	depends on PCI_GODIRECT
555
	depends on X86_IO_APIC
556 557
	depends on X86_32
	depends on X86_EXTENDED_PLATFORM
558
	select X86_REBOOTFIXUPS
559 560
	select OF
	select OF_EARLY_FLATTREE
561 562 563 564 565
	---help---
	  Select for the Intel CE media processor (CE4100) SOC.
	  This option compiles in support for the CE4100 SOC for settop
	  boxes and media devices.

566
config X86_INTEL_MID
567 568
	bool "Intel MID platform support"
	depends on X86_EXTENDED_PLATFORM
569
	depends on X86_PLATFORM_DEVICES
570
	depends on PCI
571
	depends on X86_64 || (PCI_GOANY && X86_32)
572
	depends on X86_IO_APIC
573
	select SFI
574
	select I2C
575
	select DW_APB_TIMER
576 577
	select APB_TIMER
	select INTEL_SCU_IPC
578
	select MFD_INTEL_MSIC
579
	---help---
580 581 582
	  Select to build a kernel capable of supporting Intel MID (Mobile
	  Internet Device) platform systems which do not have the PCI legacy
	  interfaces. If you are building for a PC class system say N here.
583

584 585
	  Intel MID platforms are based on an Intel processor and chipset which
	  consume less power than most of the x86 derivatives.
586

587 588 589 590 591 592 593 594 595 596 597
config X86_INTEL_QUARK
	bool "Intel Quark platform support"
	depends on X86_32
	depends on X86_EXTENDED_PLATFORM
	depends on X86_PLATFORM_DEVICES
	depends on X86_TSC
	depends on PCI
	depends on PCI_GOANY
	depends on X86_IO_APIC
	select IOSF_MBI
	select INTEL_IMR
598
	select COMMON_CLK
599 600 601 602 603
	---help---
	  Select to include support for Quark X1000 SoC.
	  Say Y here if you have a Quark based system such as the Arduino
	  compatible Intel Galileo.

604 605
config X86_INTEL_LPSS
	bool "Intel Low Power Subsystem Support"
606
	depends on X86 && ACPI
607
	select COMMON_CLK
608
	select PINCTRL
609
	select IOSF_MBI
610 611 612
	---help---
	  Select to build support for Intel Low Power Subsystem such as
	  found on Intel Lynxpoint PCH. Selecting this option enables
613 614
	  things like clock tree (common clock framework) and pincontrol
	  which are needed by the LPSS peripheral drivers.
615

616 617 618 619 620 621 622 623 624 625 626
config X86_AMD_PLATFORM_DEVICE
	bool "AMD ACPI2Platform devices support"
	depends on ACPI
	select COMMON_CLK
	select PINCTRL
	---help---
	  Select to interpret AMD specific ACPI device to platform device
	  such as I2C, UART, GPIO found on AMD Carrizo and later chipsets.
	  I2C and UART depend on COMMON_CLK to set clock. GPIO driver is
	  implemented under PINCTRL subsystem.

627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643
config IOSF_MBI
	tristate "Intel SoC IOSF Sideband support for SoC platforms"
	depends on PCI
	---help---
	  This option enables sideband register access support for Intel SoC
	  platforms. On these platforms the IOSF sideband is used in lieu of
	  MSR's for some register accesses, mostly but not limited to thermal
	  and power. Drivers may query the availability of this device to
	  determine if they need the sideband in order to work on these
	  platforms. The sideband is available on the following SoC products.
	  This list is not meant to be exclusive.
	   - BayTrail
	   - Braswell
	   - Quark

	  You should say Y if you are running a kernel on one of these SoC's.

644 645 646 647 648 649 650 651 652 653 654 655 656
config IOSF_MBI_DEBUG
	bool "Enable IOSF sideband access through debugfs"
	depends on IOSF_MBI && DEBUG_FS
	---help---
	  Select this option to expose the IOSF sideband access registers (MCR,
	  MDR, MCRX) through debugfs to write and read register information from
	  different units on the SoC. This is most useful for obtaining device
	  state information for debug and analysis. As this is a general access
	  mechanism, users of this option would have specific knowledge of the
	  device they want to access.

	  If you don't require the option or are in doubt, say N.

657 658
config X86_RDC321X
	bool "RDC R-321x SoC"
659
	depends on X86_32
660 661 662 663 664 665 666 667
	depends on X86_EXTENDED_PLATFORM
	select M486
	select X86_REBOOTFIXUPS
	---help---
	  This option is needed for RDC R-321x system-on-chip, also known
	  as R-8610-(G).
	  If you don't have one of these chips, you should say N here.

668
config X86_32_NON_STANDARD
669 670
	bool "Support non-standard 32-bit SMP architectures"
	depends on X86_32 && SMP
671
	depends on X86_EXTENDED_PLATFORM
Ingo Molnar's avatar
Ingo Molnar committed
672
	---help---
H. Peter Anvin's avatar
H. Peter Anvin committed
673 674 675 676
	  This option compiles in the bigsmp and STA2X11 default
	  subarchitectures.  It is intended for a generic binary
	  kernel. If you select them all, kernel will probe it one by
	  one and will fallback to default.
677

678
# Alphabetically sorted list of Non standard 32 bit platforms
679

680
config X86_SUPPORTS_MEMORY_FAILURE
Jan Beulich's avatar
Jan Beulich committed
681
	def_bool y
682 683 684 685 686 687 688
	# MCE code calls memory_failure():
	depends on X86_MCE
	# On 32-bit this adds too big of NODES_SHIFT and we run out of page flags:
	# On 32-bit SPARSEMEM adds too big of SECTIONS_WIDTH:
	depends on X86_64 || !SPARSEMEM
	select ARCH_SUPPORTS_MEMORY_FAILURE

689 690 691 692 693 694 695
config STA2X11
	bool "STA2X11 Companion Chip Support"
	depends on X86_32_NON_STANDARD && PCI
	select X86_DEV_DMA_OPS
	select X86_DMA_REMAP
	select SWIOTLB
	select MFD_STA2X11
696
	select GPIOLIB
697 698 699 700 701 702 703 704
	default n
	---help---
	  This adds support for boards based on the STA2X11 IO-Hub,
	  a.k.a. "ConneXt". The chip is used in place of the standard
	  PC chipset, so all "standard" peripherals are missing. If this
	  option is selected the kernel will still be able to boot on
	  standard PC machines.

705 706 707 708 709 710 711 712 713 714 715 716 717
config X86_32_IRIS
	tristate "Eurobraille/Iris poweroff module"
	depends on X86_32
	---help---
	  The Iris machines from EuroBraille do not have APM or ACPI support
	  to shut themselves down properly.  A special I/O sequence is
	  needed to do so, which is what this module does at
	  kernel shutdown.

	  This is only for Iris machines from EuroBraille.

	  If unused, say N.

718
config SCHED_OMIT_FRAME_POINTER
719 720
	def_bool y
	prompt "Single-depth WCHAN output"
721
	depends on X86
Ingo Molnar's avatar
Ingo Molnar committed
722
	---help---
723 724 725 726 727 728 729
	  Calculate simpler /proc/<PID>/wchan values. If this option
	  is disabled then wchan values will recurse back to the
	  caller function. This provides more accurate wchan values,
	  at the expense of slightly more scheduling overhead.

	  If in doubt, say "Y".

730 731
menuconfig HYPERVISOR_GUEST
	bool "Linux guest support"
Ingo Molnar's avatar
Ingo Molnar committed
732
	---help---
733 734 735
	  Say Y here to enable options for running Linux under various hyper-
	  visors. This option enables basic hypervisor detection and platform
	  setup.
736

737 738
	  If you say N, all options in this submenu will be skipped and
	  disabled, and Linux guest support won't be built in.
739

740
if HYPERVISOR_GUEST
741

742 743
config PARAVIRT
	bool "Enable paravirtualization code"
744
	depends on !IPIPE
Ingo Molnar's avatar
Ingo Molnar committed
745
	---help---
746 747 748 749 750
	  This changes the kernel so it can modify itself when it is run
	  under a hypervisor, potentially improving performance significantly
	  over full virtualization.  However, when run without a hypervisor
	  the kernel is theoretically slower and slightly larger.

751 752 753 754 755 756 757
config PARAVIRT_DEBUG
	bool "paravirt-ops debugging"
	depends on PARAVIRT && DEBUG_KERNEL
	---help---
	  Enable to debug paravirt_ops internals.  Specifically, BUG if
	  a paravirt_op is missing when it is called.

758 759
config PARAVIRT_SPINLOCKS
	bool "Paravirtualization layer for spinlocks"
760
	depends on PARAVIRT && SMP
761 762 763 764 765
	---help---
	  Paravirtualized spinlocks allow a pvops backend to replace the
	  spinlock implementation with something virtualization-friendly
	  (for example, block the virtual CPU rather than spinning).

766 767
	  It has a minimal impact on native kernels and gives a nice performance
	  benefit on paravirtualized KVM / Xen kernels.
768

769
	  If you are unsure how to answer this question, answer Y.
770

771 772
config QUEUED_LOCK_STAT
	bool "Paravirt queued spinlock statistics"
773
	depends on PARAVIRT_SPINLOCKS && DEBUG_FS
774 775 776 777 778
	---help---
	  Enable the collection of statistical data on the slowpath
	  behavior of paravirtualized queued spinlocks and report
	  them on debugfs.

779
source "arch/x86/xen/Kconfig"
780

781 782 783 784 785
config KVM_GUEST
	bool "KVM Guest support (including kvmclock)"
	depends on PARAVIRT
	select PARAVIRT_CLOCK
	default y
Ingo Molnar's avatar
Ingo Molnar committed
786
	---help---
787 788 789 790 791
	  This option enables various optimizations for running under the KVM
	  hypervisor. It includes a paravirtualized clock, so that instead
	  of relying on a PIT (or probably other) emulation by the
	  underlying device model, the host provides the guest with
	  timing infrastructure such as time of day, and system time
792

793 794 795 796 797 798 799 800 801
config KVM_DEBUG_FS
	bool "Enable debug information for KVM Guests in debugfs"
	depends on KVM_GUEST && DEBUG_FS
	default n
	---help---
	  This option enables collection of various statistics for KVM guest.
	  Statistics are displayed in debugfs filesystem. Enabling this option
	  may incur significant overhead.

802 803 804 805
config PARAVIRT_TIME_ACCOUNTING
	bool "Paravirtual steal time accounting"
	depends on PARAVIRT
	default n
Ingo Molnar's avatar
Ingo Molnar committed
806
	---help---
807 808 809 810 811 812 813 814 815
	  Select this option to enable fine granularity task steal time
	  accounting. Time spent executing other tasks in parallel with
	  the current vCPU is discounted from the vCPU power. To account for
	  that, there can be a small performance impact.

	  If in doubt, say N here.

config PARAVIRT_CLOCK
	bool
816

817
endif #HYPERVISOR_GUEST
818

819
config NO_BOOTMEM
Yinghai Lu's avatar
Yinghai Lu committed
820
	def_bool y
821

822 823 824
source "arch/x86/Kconfig.cpu"

config HPET_TIMER
825
	def_bool X86_64
826
	prompt "HPET Timer Support" if X86_32
Ingo Molnar's avatar
Ingo Molnar committed
827 828 829 830 831 832 833
	---help---
	  Use the IA-PC HPET (High Precision Event Timer) to manage
	  time in preference to the PIT and RTC, if a HPET is
	  present.
	  HPET is the next generation timer replacing legacy 8254s.
	  The HPET provides a stable time base on SMP
	  systems, unlike the TSC, but it is more expensive to access,
Michael S. Tsirkin's avatar
Michael S. Tsirkin committed
834 835
	  as it is off-chip.  The interface used is documented
	  in the HPET spec, revision 1.
836

Ingo Molnar's avatar
Ingo Molnar committed
837 838 839
	  You can safely choose Y here.  However, HPET will only be
	  activated if the platform and the BIOS support this feature.
	  Otherwise the 8254 will be used for timing services.
840

Ingo Molnar's avatar
Ingo Molnar committed
841
	  Choose N to continue using the legacy 8254 timer.
842 843

config HPET_EMULATE_RTC
844
	def_bool y
845
	depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y)
846

847
config APB_TIMER
848 849
       def_bool y if X86_INTEL_MID
       prompt "Intel MID APB Timer Support" if X86_INTEL_MID
850
       select DW_APB_TIMER
851
       depends on X86_INTEL_MID && SFI
852 853 854 855 856 857 858
       help
         APB timer is the replacement for 8254, HPET on X86 MID platforms.
         The APBT provides a stable time base on SMP
         systems, unlike the TSC, but it is more expensive to access,
         as it is off-chip. APB timers are always running regardless of CPU
         C states, they are used as per CPU clockevent device when possible.

859
# Mark as expert because too many people got it wrong.
860
# The code disables itself when not needed.
861 862
config DMI
	default y
863
	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
864
	bool "Enable DMI scanning" if EXPERT
Ingo Molnar's avatar
Ingo Molnar committed
865
	---help---
866 867 868 869 870
	  Enabled scanning of DMI to identify machine quirks. Say Y
	  here unless you have verified that your setup is not
	  affected by entries in the DMI blacklist. Required by PNP
	  BIOS code.

871
config GART_IOMMU
872
	bool "Old AMD GART IOMMU support"
873
	select SWIOTLB
874
	depends on X86_64 && PCI && AMD_NB
Ingo Molnar's avatar
Ingo Molnar committed
875
	---help---
876 877 878 879 880 881 882 883 884 885 886 887 888 889 890
	  Provides a driver for older AMD Athlon64/Opteron/Turion/Sempron
	  GART based hardware IOMMUs.

	  The GART supports full DMA access for devices with 32-bit access
	  limitations, on systems with more than 3 GB. This is usually needed
	  for USB, sound, many IDE/SATA chipsets and some other devices.

	  Newer systems typically have a modern AMD IOMMU, supported via
	  the CONFIG_AMD_IOMMU=y config option.

	  In normal configurations this driver is only active when needed:
	  there's more than 3 GB of memory and the system contains a
	  32-bit limited device.

	  If unsure, say Y.
891 892 893 894

config CALGARY_IOMMU
	bool "IBM Calgary IOMMU support"
	select SWIOTLB
895
	depends on X86_64 && PCI
Ingo Molnar's avatar
Ingo Molnar committed
896
	---help---
897 898 899 900 901 902 903 904 905 906 907 908 909 910
	  Support for hardware IOMMUs in IBM's xSeries x366 and x460
	  systems. Needed to run systems with more than 3GB of memory
	  properly with 32-bit PCI devices that do not support DAC
	  (Double Address Cycle). Calgary also supports bus level
	  isolation, where all DMAs pass through the IOMMU.  This
	  prevents them from going anywhere except their intended
	  destination. This catches hard-to-find kernel bugs and
	  mis-behaving drivers and devices that do not use the DMA-API
	  properly to set up their DMA buffers.  The IOMMU can be
	  turned off at boot time with the iommu=off parameter.
	  Normally the kernel will make the right choice by itself.
	  If unsure, say Y.

config CALGARY_IOMMU_ENABLED_BY_DEFAULT
911 912
	def_bool y
	prompt "Should Calgary be enabled by default?"
913
	depends on CALGARY_IOMMU
Ingo Molnar's avatar
Ingo Molnar committed
914
	---help---
915 916 917 918 919 920 921 922
	  Should Calgary be enabled by default? if you choose 'y', Calgary
	  will be used (if it exists). If you choose 'n', Calgary will not be
	  used even if it exists. If you choose 'n' and would like to use
	  Calgary anyway, pass 'iommu=calgary' on the kernel command line.
	  If unsure, say Y.

# need this always selected by IOMMU for the VIA workaround
config SWIOTLB
923
	def_bool y if X86_64
Ingo Molnar's avatar
Ingo Molnar committed
924
	---help---
925
	  Support for software bounce buffers used on x86-64 systems
926 927 928 929
	  which don't have a hardware IOMMU. Using this PCI devices
	  which can only access 32-bits of memory can be used on systems
	  with more than 3 GB of memory.
	  If unsure, say Y.
930

931
config IOMMU_HELPER
932 933
	def_bool y
	depends on CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU
934

935
config MAXSMP
936
	bool "Enable Maximum number of SMP Processors and NUMA Nodes"
937
	depends on X86_64 && SMP && DEBUG_KERNEL
Mike Travis's avatar
Mike Travis committed
938
	select CPUMASK_OFFSTACK
Ingo Molnar's avatar
Ingo Molnar committed
939
	---help---
940
	  Enable maximum number of CPUS and NUMA Nodes for this architecture.
941
	  If unsure, say N.
942 943

config NR_CPUS
Mike Travis's avatar
Mike Travis committed
944
	int "Maximum number of CPUs" if SMP && !MAXSMP
945
	range 2 8 if SMP && X86_32 && !X86_BIGSMP
946 947
	range 2 64 if SMP && X86_32 && X86_BIGSMP
	range 2 512 if SMP && !MAXSMP && !CPUMASK_OFFSTACK && X86_64
948
	range 2 8192 if SMP && !MAXSMP && CPUMASK_OFFSTACK && X86_64
949
	default "1" if !SMP
950
	default "8192" if MAXSMP
H. Peter Anvin's avatar
H. Peter Anvin committed
951
	default "32" if SMP && X86_BIGSMP
952 953
	default "8" if SMP && X86_32
	default "64" if SMP
Ingo Molnar's avatar
Ingo Molnar committed
954
	---help---
955
	  This allows you to specify the maximum number of CPUs which this
956
	  kernel will support.  If CPUMASK_OFFSTACK is enabled, the maximum
957
	  supported value is 8192, otherwise the maximum value is 512.  The
958 959 960 961 962 963
	  minimum value which makes sense is 2.

	  This is purely to save memory - each supported CPU adds
	  approximately eight kilobytes to the kernel image.

config SCHED_SMT
964
	def_bool y if SMP
965 966

config SCHED_MC
967 968
	def_bool y
	prompt "Multi-core scheduler support"
Borislav Petkov's avatar
Borislav Petkov committed
969
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
970
	---help---
971 972 973 974
	  Multi-core scheduler support improves the CPU scheduler's decision
	  making when dealing with multi-core CPU chips at a cost of slightly
	  increased overhead in some places. If unsure say N here.

975 976
config SCHED_MC_PRIO
	bool "CPU core priorities scheduler support"
977 978 979
	depends on SCHED_MC && CPU_SUP_INTEL
	select X86_INTEL_PSTATE
	select CPU_FREQ
980
	default y
981
	---help---
982 983 984 985
	  Intel Turbo Boost Max Technology 3.0 enabled CPUs have a
	  core ordering determined at manufacturing time, which allows
	  certain cores to reach higher turbo frequencies (when running
	  single threaded workloads) than others.
986

987 988 989 990
	  Enabling this kernel feature teaches the scheduler about
	  the TBM3 (aka ITMT) priority order of the CPU cores and adjusts the
	  scheduler's CPU selection logic accordingly, so that higher
	  overall system performance can be achieved.
991

992
	  This feature will have no effect on CPUs without this feature.
993

994
	  If unsure say Y here.
995

996 997
source "kernel/Kconfig.preempt"

Philippe Gerum's avatar
Philippe Gerum committed
998 999
source "kernel/ipipe/Kconfig"

Thomas Gleixner's avatar
Thomas Gleixner committed
1000 1001
config UP_LATE_INIT
       def_bool y
1002
       depends on !SMP && X86_LOCAL_APIC
Thomas Gleixner's avatar
Thomas Gleixner committed
1003

1004
config X86_UP_APIC
1005 1006
	bool "Local APIC support on uniprocessors" if !PCI_MSI
	default PCI_MSI
1007
	depends on X86_32 && !SMP && !X86_32_NON_STANDARD
Ingo Molnar's avatar
Ingo Molnar committed
1008
	---help---
1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
	  A local APIC (Advanced Programmable Interrupt Controller) is an
	  integrated interrupt controller in the CPU. If you have a single-CPU
	  system which has a processor with a local APIC, you can say Y here to
	  enable and use it. If you say Y here even though your machine doesn't
	  have a local APIC, then the kernel will still run with no slowdown at
	  all. The local APIC supports CPU-generated self-interrupts (timer,
	  performance counters), and the NMI watchdog which detects hard
	  lockups.

config X86_UP_IOAPIC
	bool "IO-APIC support on uniprocessors"
	depends on X86_UP_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1021
	---help---
1022 1023 1024 1025 1026 1027 1028 1029 1030
	  An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
	  SMP-capable replacement for PC-style interrupt controllers. Most
	  SMP systems and many recent uniprocessor systems have one.

	  If you have a single-CPU system with an IO-APIC, you can say Y here
	  to use it. If you say Y here even though your machine doesn't have
	  an IO-APIC, then the kernel will still run with no slowdown at all.

config X86_LOCAL_APIC
1031
	def_bool y
1032
	depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI
1033
	select IRQ_DOMAIN_HIERARCHY
1034
	select PCI_MSI_IRQ_DOMAIN if PCI_MSI
1035 1036

config X86_IO_APIC
1037 1038
	def_bool y
	depends on X86_LOCAL_APIC || X86_UP_IOAPIC
1039

1040 1041 1042
config X86_REROUTE_FOR_BROKEN_BOOT_IRQS
	bool "Reroute for broken boot IRQs"
	depends on X86_IO_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1043
	---help---
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062
	  This option enables a workaround that fixes a source of
	  spurious interrupts. This is recommended when threaded
	  interrupt handling is used on systems where the generation of
	  superfluous "boot interrupts" cannot be disabled.

	  Some chipsets generate a legacy INTx "boot IRQ" when the IRQ
	  entry in the chipset's IO-APIC is masked (as, e.g. the RT
	  kernel does during interrupt handling). On chipsets where this
	  boot IRQ generation cannot be disabled, this workaround keeps
	  the original IRQ line masked so that only the equivalent "boot
	  IRQ" is delivered to the CPUs. The workaround also tells the
	  kernel to set up the IRQ handler on the boot IRQ line. In this
	  way only one interrupt is delivered to the kernel. Otherwise
	  the spurious second interrupt may cause the kernel to bring
	  down (vital) interrupt lines.

	  Only affects "broken" chipsets. Interrupt sharing may be
	  increased on these systems.

1063
config X86_MCE
1064
	bool "Machine Check / overheating reporting"
1065
	select GENERIC_ALLOCATOR
1066
	default y
1067
	---help---
1068 1069
	  Machine Check support allows the processor to notify the
	  kernel if it detects a problem (e.g. overheating, data corruption).
1070
	  The action the kernel takes depends on the severity of the problem,
1071
	  ranging from warning messages to halting the machine.
1072

1073 1074 1075 1076 1077 1078 1079 1080
config X86_MCELOG_LEGACY
	bool "Support for deprecated /dev/mcelog character device"
	depends on X86_MCE
	---help---
	  Enable support for /dev/mcelog which is needed by the old mcelog
	  userspace logging daemon. Consider switching to the new generation
	  rasdaemon solution.

1081
config X86_MCE_INTEL
1082 1083
	def_bool y
	prompt "Intel MCE features"
1084
	depends on X86_MCE && X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1085
	---help---
1086 1087 1088 1089
	   Additional support for intel specific MCE features such as
	   the thermal monitor.

config X86_MCE_AMD
1090 1091
	def_bool y
	prompt "AMD MCE features"
1092
	depends on X86_MCE && X86_LOCAL_APIC && AMD_NB
Ingo Molnar's avatar
Ingo Molnar committed
1093
	---help---
1094 1095 1096
	   Additional support for AMD specific MCE features such as
	   the DRAM Error Threshold.

1097
config X86_ANCIENT_MCE
Jan Beulich's avatar
Jan Beulich committed
1098
	bool "Support for old Pentium 5 / WinChip machine checks"
1099
	depends on X86_32 && X86_MCE
1100 1101
	---help---
	  Include support for machine check handling on old Pentium 5 or WinChip
Masanari Iida's avatar
Masanari Iida committed
1102
	  systems. These typically need to be enabled explicitly on the command
1103
	  line.
1104

1105 1106
config X86_MCE_THRESHOLD
	depends on X86_MCE_AMD || X86_MCE_INTEL
Jan Beulich's avatar
Jan Beulich committed
1107
	def_bool y
1108

1109
config X86_MCE_INJECT
1110
	depends on X86_MCE && X86_LOCAL_APIC && DEBUG_FS
1111 1112 1113 1114 1115 1116
	tristate "Machine check injector support"
	---help---
	  Provide support for injecting machine checks for testing purposes.
	  If you don't know what a machine check is and you don't do kernel
	  QA it is safe to say n.

1117 1118
config X86_THERMAL_VECTOR
	def_bool y
1119
	depends on X86_MCE_INTEL
1120

1121
source "arch/x86/events/Kconfig"
1122

1123
config X86_LEGACY_VM86
1124
	bool "Legacy VM86 support"
1125
	default n
1126
	depends on X86_32
Ingo Molnar's avatar
Ingo Molnar committed
1127
	---help---
1128 1129 1130 1131 1132 1133 1134 1135
	  This option allows user programs to put the CPU into V8086
	  mode, which is an 80286-era approximation of 16-bit real mode.

	  Some very old versions of X and/or vbetool require this option
	  for user mode setting.  Similarly, DOSEMU will use it if
	  available to accelerate real mode DOS programs.  However, any
	  recent version of DOSEMU, X, or vbetool should be fully
	  functional even without kernel VM86 support, as they will all
1136 1137 1138 1139
	  fall back to software emulation. Nevertheless, if you are using
	  a 16-bit DOS program where 16-bit performance matters, vm86
	  mode might be faster than emulation and you might want to
	  enable this option.