3 select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
5 select ARCH_USE_CMPXCHG_LOCKREF
7 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
8 select ARCH_SUPPORTS_ATOMIC_RMW
9 select ARCH_HAS_GCOV_PROFILE_ALL
10 select ARCH_WANT_OPTIONAL_GPIOLIB
11 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
12 select ARCH_WANT_FRAME_POINTERS
17 select BUILDTIME_EXTABLE_SORT
18 select AUDIT_ARCH_COMPAT_GENERIC
19 select CLONE_BACKWARDS
21 select CPU_PM if (SUSPEND || CPU_IDLE)
22 select DCACHE_WORD_ACCESS
23 select GENERIC_ALLOCATOR
24 select GENERIC_CLOCKEVENTS
25 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
26 select GENERIC_CPU_AUTOPROBE
27 select GENERIC_EARLY_IOREMAP
29 select GENERIC_IRQ_PROBE
30 select GENERIC_IRQ_SHOW
31 select GENERIC_SMP_IDLE_THREAD
32 select GENERIC_STRNCPY_FROM_USER
33 select GENERIC_STRNLEN_USER
34 select GENERIC_TIME_VSYSCALL
35 select HARDIRQS_SW_RESEND
36 select HAVE_ARCH_JUMP_LABEL
38 select HAVE_ARCH_AUDITSYSCALL
39 select HAVE_ARCH_SECCOMP_FILTER
40 select HAVE_ARCH_TRACEHOOK
41 select HAVE_C_RECORDMCOUNT
42 select HAVE_CC_STACKPROTECTOR
43 select HAVE_DEBUG_BUGVERBOSE
44 select HAVE_DEBUG_KMEMLEAK
45 select HAVE_DMA_API_DEBUG
47 select HAVE_DMA_CONTIGUOUS
48 select HAVE_DYNAMIC_FTRACE
49 select HAVE_EFFICIENT_UNALIGNED_ACCESS
50 select HAVE_FTRACE_MCOUNT_RECORD
51 select HAVE_FUNCTION_TRACER
52 select HAVE_FUNCTION_GRAPH_TRACER
53 select HAVE_GENERIC_DMA_COHERENT
54 select HAVE_GENERIC_HARDIRQS
55 select HAVE_HW_BREAKPOINT if PERF_EVENTS
57 select HAVE_PATA_PLATFORM
58 select HAVE_PERF_EVENTS
60 select HAVE_PERF_USER_STACK_DUMP
61 select HAVE_SYSCALL_TRACEPOINTS
63 select MODULES_USE_ELF_RELA
66 select OF_EARLY_FLATTREE
67 select OF_RESERVED_MEM
68 select PERF_USE_VMALLOC
73 select SYSCTL_EXCEPTION_TRACE
75 ARM 64-bit (AArch64) Linux support.
80 config ARCH_PHYS_ADDR_T_64BIT
89 config STACKTRACE_SUPPORT
92 config LOCKDEP_SUPPORT
95 config TRACE_IRQFLAGS_SUPPORT
98 config RWSEM_XCHGADD_ALGORITHM
101 config GENERIC_HWEIGHT
107 config GENERIC_CALIBRATE_DELAY
113 config ARCH_DMA_ADDR_T_64BIT
116 config NEED_DMA_MAP_STATE
119 config NEED_SG_DMA_LENGTH
128 config FIX_EARLYCON_MEM
131 source "init/Kconfig"
133 source "kernel/Kconfig.freezer"
135 menu "Platform selection"
138 bool "ARMv8 software model (Versatile Express)"
139 select ARCH_REQUIRE_GPIOLIB
140 select COMMON_CLK_VERSATILE
141 select POWER_RESET_VEXPRESS
142 select VEXPRESS_CONFIG
144 This enables support for the ARMv8 software model (Versatile
148 bool "AppliedMicro X-Gene SOC Family"
150 This enables support for AppliedMicro X-Gene SOC Family
161 menu "Kernel Features"
163 config ARM64_64K_PAGES
164 bool "Enable 64KB pages support"
166 This feature enables 64KB pages support (4KB by default)
167 allowing only two levels of page tables and faster TLB
168 look-up. AArch32 emulation is not available when this feature
171 config CPU_BIG_ENDIAN
172 bool "Build big-endian kernel"
174 Say Y if you plan on running a kernel in big-endian mode.
177 bool "Symmetric Multi-Processing"
178 select USE_GENERIC_SMP_HELPERS
180 This enables support for systems with more than one CPU. If
181 you say N here, the kernel will run on single and
182 multiprocessor machines, but will use only one CPU of a
183 multiprocessor machine. If you say Y here, the kernel will run
184 on many, but not all, single processor machines. On a single
185 processor machine, the kernel will run faster if you say N
188 If you don't know what to do here, say N.
191 bool "Multi-core scheduler support"
194 Multi-core scheduler support improves the CPU scheduler's decision
195 making when dealing with multi-core CPU chips at a cost of slightly
196 increased overhead in some places. If unsure say N here.
199 bool "SMT scheduler support"
202 Improves the CPU scheduler's decision making when dealing with
203 MultiThreading at a cost of slightly increased overhead in some
204 places. If unsure say N here.
206 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
207 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
209 Disables scheduler load-balancing at CPU sched domain level.
212 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
213 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
215 Experimental scheduler optimizations for heterogeneous platforms.
216 Attempts to introspectively select task affinity to optimize power
217 and performance. Basic support for multiple (>2) cpu types is in place,
218 but it has only been tested with two types of cpus.
219 There is currently no support for migration of task groups, hence
220 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
221 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
223 config SCHED_HMP_PRIO_FILTER
224 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
227 Enables task priority based HMP migration filter. Any task with
228 a NICE value above the threshold will always be on low-power cpus
229 with less compute capacity.
231 config SCHED_HMP_PRIO_FILTER_VAL
232 int "NICE priority threshold"
234 depends on SCHED_HMP_PRIO_FILTER
236 config HMP_FAST_CPU_MASK
237 string "HMP scheduler fast CPU mask"
240 Leave empty to use device tree information.
241 Specify the cpuids of the fast CPUs in the system as a list string,
242 e.g. cpuid 0+1 should be specified as 0-1.
244 config HMP_SLOW_CPU_MASK
245 string "HMP scheduler slow CPU mask"
248 Leave empty to use device tree information.
249 Specify the cpuids of the slow CPUs in the system as a list string,
250 e.g. cpuid 0+1 should be specified as 0-1.
252 config HMP_VARIABLE_SCALE
253 bool "Allows changing the load tracking scale through sysfs"
256 When turned on, this option exports the thresholds and load average
257 period value for the load tracking patches through sysfs.
258 The values can be modified to change the rate of load accumulation
259 and the thresholds used for HMP migration.
260 The load_avg_period_ms is the time in ms to reach a load average of
261 0.5 for an idle task of 0 load average ratio that start a busy loop.
262 The up_threshold and down_threshold is the value to go to a faster
263 CPU or to go back to a slower cpu.
264 The {up,down}_threshold are devided by 1024 before being compared
266 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
267 a running task with a load of 0 will be migrated to a bigger CPU after
268 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
270 This patch has the same behavior as changing the Y of the load
271 average computation to
272 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
273 but it remove intermadiate overflows in computation.
275 config HMP_FREQUENCY_INVARIANT_SCALE
276 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
277 depends on HMP_VARIABLE_SCALE && CPU_FREQ
279 Scales the current load contribution in line with the frequency
280 of the CPU that the task was executed on.
281 In this version, we use a simple linear scale derived from the
282 maximum frequency reported by CPUFreq.
283 Restricting tracked load to be scaled by the CPU's frequency
284 represents the consumption of possible compute capacity
285 (rather than consumption of actual instantaneous capacity as
286 normal) and allows the HMP migration's simple threshold
287 migration strategy to interact more predictably with CPUFreq's
288 asynchronous compute capacity changes.
290 config SCHED_HMP_LITTLE_PACKING
291 bool "Small task packing for HMP"
295 Allows the HMP Scheduler to pack small tasks into CPUs in the
297 Controlled by two sysfs files in sys/kernel/hmp.
298 packing_enable: 1 to enable, 0 to disable packing. Default 1.
299 packing_limit: runqueue load ratio where a RQ is considered
300 to be full. Default is NICE_0_LOAD * 9/8.
303 int "Maximum number of CPUs (2-32)"
306 # These have to remain sorted largest to smallest
310 bool "Support for hot-pluggable CPUs"
313 Say Y here to experiment with turning CPUs off and on. CPUs
314 can be controlled through /sys/devices/system/cpu.
317 bool "Emulate SWP/SWPB instructions"
319 ARMv6 architecture deprecates use of the SWP/SWPB instructions. ARMv8
320 oblosetes the use of SWP/SWPB instructions. ARMv7 multiprocessing
321 extensions introduce the ability to disable these instructions,
322 triggering an undefined instruction exception when executed. Say Y
323 here to enable software emulation of these instructions for userspace
324 (not kernel) using LDREX/STREX. Also creates /proc/cpu/swp_emulation
327 In some older versions of glibc [<=2.8] SWP is used during futex
328 trylock() operations with the assumption that the code will not
329 be preempted. This invalid assumption may be more likely to fail
330 with SWP emulation enabled, leading to deadlock of the user
333 NOTE: when accessing uncached shared regions, LDREX/STREX rely
334 on an external transaction monitoring block called a global
335 monitor to maintain update atomicity. If your system does not
336 implement a global monitor, this option can cause programs that
337 perform SWP operations to uncached memory to deadlock.
341 source kernel/Kconfig.preempt
347 config ARCH_HAS_HOLES_MEMORYMODEL
348 def_bool y if SPARSEMEM
350 config ARCH_SPARSEMEM_ENABLE
352 select SPARSEMEM_VMEMMAP_ENABLE
354 config ARCH_SPARSEMEM_DEFAULT
355 def_bool ARCH_SPARSEMEM_ENABLE
357 config ARCH_SELECT_MEMORY_MODEL
358 def_bool ARCH_SPARSEMEM_ENABLE
360 config HAVE_ARCH_PFN_VALID
361 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
363 config HW_PERF_EVENTS
364 bool "Enable hardware performance counter support for perf events"
365 depends on PERF_EVENTS
368 Enable hardware performance counter support for perf events. If
369 disabled, perf events will use software events only.
371 config SYS_SUPPORTS_HUGETLBFS
374 config ARCH_WANT_GENERAL_HUGETLB
377 config ARCH_WANT_HUGE_PMD_SHARE
378 def_bool y if !ARM64_64K_PAGES
380 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
384 bool "Kernel support for ARMv7 applications"
388 This option enables features that allow that ran on an ARMv7 or older
389 processor to continue functioning.
391 If you want to execute ARMv7 applications, say Y
393 config ARMV7_COMPAT_CPUINFO
394 bool "Report backwards compatible cpu features in /proc/cpuinfo"
395 depends on ARMV7_COMPAT
398 This option makes /proc/cpuinfo list CPU features that an ARMv7 or
399 earlier kernel would report, but are not optional on an ARMv8 or later
402 If you want to execute ARMv7 applications, say Y
406 config FORCE_MAX_ZONEORDER
408 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
412 bool "Enable seccomp to safely compute untrusted bytecode"
414 This kernel feature is useful for number crunching applications
415 that may need to compute untrusted bytecode during their
416 execution. By using pipes or other transports made available to
417 the process as file descriptors supporting the read/write
418 syscalls, it's possible to isolate those applications in
419 their own address space using seccomp. Once seccomp is
420 enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
421 and the task is only allowed to execute a few safe syscalls
422 defined by each seccomp mode.
429 string "Default kernel command string"
432 Provide a set of default command-line options at build time by
433 entering them here. As a minimum, you should specify the the
434 root device (e.g. root=/dev/nfs).
437 prompt "Kernel command line type" if CMDLINE != ""
438 default CMDLINE_FROM_BOOTLOADER
440 config CMDLINE_FROM_BOOTLOADER
441 bool "Use bootloader kernel arguments if available"
443 Uses the command-line options passed by the boot loader. If
444 the boot loader doesn't provide any, the default kernel command
445 string provided in CMDLINE will be used.
447 config CMDLINE_EXTEND
448 bool "Extend bootloader kernel arguments"
450 The command-line arguments provided by the boot loader will be
451 appended to the default kernel command string.
454 bool "Always use the default kernel command string"
456 Always use the default kernel command string, even if the boot
457 loader passes other arguments to the kernel.
458 This is useful if you cannot or don't want to change the
459 command-line options your boot loader passes to the kernel.
462 config BUILD_ARM64_APPENDED_DTB_IMAGE
463 bool "Build a concatenated Image.gz/dtb by default"
466 Enabling this option will cause a concatenated Image.gz and list of
467 DTBs to be built by default (instead of a standalone Image.gz.)
468 The image will built in arch/arm64/boot/Image.gz-dtb
470 config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
471 string "Default dtb names"
472 depends on BUILD_ARM64_APPENDED_DTB_IMAGE
474 Space separated list of names of dtbs to append when
475 building a concatenated Image.gz-dtb.
478 bool "UEFI runtime support"
479 depends on OF && !CPU_BIG_ENDIAN
482 select EFI_PARAMS_FROM_FDT
485 This option provides support for runtime services provided
486 by UEFI firmware (such as non-volatile variables, realtime
487 clock, and platform reset). A UEFI stub is also provided to
488 allow the kernel to be booted as an EFI application. This
489 is only useful on systems that have UEFI firmware.
493 menu "Userspace binary formats"
495 source "fs/Kconfig.binfmt"
498 bool "Kernel support for 32-bit EL0"
499 depends on !ARM64_64K_PAGES
500 select COMPAT_BINFMT_ELF
502 select OLD_SIGSUSPEND3
503 select COMPAT_OLD_SIGACTION
505 This option enables support for a 32-bit EL0 running under a 64-bit
506 kernel at EL1. AArch32-specific components such as system calls,
507 the user helper functions, VFP support and the ptrace interface are
508 handled appropriately by the kernel.
510 If you want to execute 32-bit userspace applications, say Y.
512 config SYSVIPC_COMPAT
514 depends on COMPAT && SYSVIPC
518 menu "Power management options"
520 source "kernel/power/Kconfig"
522 source "drivers/cpufreq/Kconfig"
523 config ARCH_SUSPEND_POSSIBLE
526 config ARM64_CPU_SUSPEND
531 menu "CPU Power Management"
533 source "drivers/cpuidle/Kconfig"
539 source "drivers/Kconfig"
541 source "drivers/firmware/Kconfig"
545 source "arch/arm64/kvm/Kconfig"
547 source "arch/arm64/Kconfig.debug"
549 source "security/Kconfig"
551 source "crypto/Kconfig"
553 source "arch/arm64/crypto/Kconfig"