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 CLONE_BACKWARDS
20 select CPU_PM if (SUSPEND || CPU_IDLE)
21 select DCACHE_WORD_ACCESS
22 select GENERIC_ALLOCATOR
23 select GENERIC_CLOCKEVENTS
24 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
25 select GENERIC_CPU_AUTOPROBE
26 select GENERIC_EARLY_IOREMAP
28 select GENERIC_IRQ_PROBE
29 select GENERIC_IRQ_SHOW
30 select GENERIC_SMP_IDLE_THREAD
31 select GENERIC_STRNCPY_FROM_USER
32 select GENERIC_STRNLEN_USER
33 select GENERIC_TIME_VSYSCALL
34 select HARDIRQS_SW_RESEND
35 select HAVE_ARCH_JUMP_LABEL
37 select HAVE_ARCH_TRACEHOOK
38 select HAVE_C_RECORDMCOUNT
39 select HAVE_CC_STACKPROTECTOR
40 select HAVE_DEBUG_BUGVERBOSE
41 select HAVE_DEBUG_KMEMLEAK
42 select HAVE_DMA_API_DEBUG
44 select HAVE_DMA_CONTIGUOUS
45 select HAVE_DYNAMIC_FTRACE
46 select HAVE_EFFICIENT_UNALIGNED_ACCESS
47 select HAVE_FTRACE_MCOUNT_RECORD
48 select HAVE_FUNCTION_TRACER
49 select HAVE_FUNCTION_GRAPH_TRACER
50 select HAVE_GENERIC_DMA_COHERENT
51 select HAVE_GENERIC_HARDIRQS
52 select HAVE_HW_BREAKPOINT if PERF_EVENTS
54 select HAVE_PATA_PLATFORM
55 select HAVE_PERF_EVENTS
57 select HAVE_PERF_USER_STACK_DUMP
58 select HAVE_SYSCALL_TRACEPOINTS
60 select MODULES_USE_ELF_RELA
63 select OF_EARLY_FLATTREE
64 select OF_RESERVED_MEM
65 select PERF_USE_VMALLOC
70 select SYSCTL_EXCEPTION_TRACE
72 ARM 64-bit (AArch64) Linux support.
77 config ARCH_PHYS_ADDR_T_64BIT
86 config STACKTRACE_SUPPORT
89 config LOCKDEP_SUPPORT
92 config TRACE_IRQFLAGS_SUPPORT
95 config RWSEM_XCHGADD_ALGORITHM
98 config GENERIC_HWEIGHT
104 config GENERIC_CALIBRATE_DELAY
110 config ARCH_DMA_ADDR_T_64BIT
113 config NEED_DMA_MAP_STATE
116 config NEED_SG_DMA_LENGTH
125 config FIX_EARLYCON_MEM
128 source "init/Kconfig"
130 source "kernel/Kconfig.freezer"
132 menu "Platform selection"
135 bool "ARMv8 software model (Versatile Express)"
136 select ARCH_REQUIRE_GPIOLIB
137 select COMMON_CLK_VERSATILE
138 select POWER_RESET_VEXPRESS
139 select VEXPRESS_CONFIG
141 This enables support for the ARMv8 software model (Versatile
145 bool "AppliedMicro X-Gene SOC Family"
147 This enables support for AppliedMicro X-Gene SOC Family
158 menu "Kernel Features"
160 menu "ARM errata workarounds"
162 config ARM64_ERRATUM_845719
163 bool "Cortex-A53: 845719: a load might read incorrect data"
167 This option adds an alternative code sequence to work around ARM
168 erratum 845719 on Cortex-A53 parts up to r0p4.
170 When running a compat (AArch32) userspace on an affected Cortex-A53
171 part, a load at EL0 from a virtual address that matches the bottom 32
172 bits of the virtual address used by a recent load at (AArch64) EL1
173 might return incorrect data.
175 The workaround is to write the contextidr_el1 register on exception
176 return to a 32-bit task.
177 Please note that this does not necessarily enable the workaround,
178 as it depends on the alternative framework, which will only patch
179 the kernel if an affected CPU is detected.
186 config ARM64_64K_PAGES
187 bool "Enable 64KB pages support"
189 This feature enables 64KB pages support (4KB by default)
190 allowing only two levels of page tables and faster TLB
191 look-up. AArch32 emulation is not available when this feature
194 config CPU_BIG_ENDIAN
195 bool "Build big-endian kernel"
197 Say Y if you plan on running a kernel in big-endian mode.
200 bool "Symmetric Multi-Processing"
201 select USE_GENERIC_SMP_HELPERS
203 This enables support for systems with more than one CPU. If
204 you say N here, the kernel will run on single and
205 multiprocessor machines, but will use only one CPU of a
206 multiprocessor machine. If you say Y here, the kernel will run
207 on many, but not all, single processor machines. On a single
208 processor machine, the kernel will run faster if you say N
211 If you don't know what to do here, say N.
214 bool "Multi-core scheduler support"
217 Multi-core scheduler support improves the CPU scheduler's decision
218 making when dealing with multi-core CPU chips at a cost of slightly
219 increased overhead in some places. If unsure say N here.
222 bool "SMT scheduler support"
225 Improves the CPU scheduler's decision making when dealing with
226 MultiThreading at a cost of slightly increased overhead in some
227 places. If unsure say N here.
229 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
230 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
232 Disables scheduler load-balancing at CPU sched domain level.
235 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
236 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
238 Experimental scheduler optimizations for heterogeneous platforms.
239 Attempts to introspectively select task affinity to optimize power
240 and performance. Basic support for multiple (>2) cpu types is in place,
241 but it has only been tested with two types of cpus.
242 There is currently no support for migration of task groups, hence
243 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
244 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
246 config SCHED_HMP_PRIO_FILTER
247 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
250 Enables task priority based HMP migration filter. Any task with
251 a NICE value above the threshold will always be on low-power cpus
252 with less compute capacity.
254 config SCHED_HMP_PRIO_FILTER_VAL
255 int "NICE priority threshold"
257 depends on SCHED_HMP_PRIO_FILTER
259 config HMP_FAST_CPU_MASK
260 string "HMP scheduler fast CPU mask"
263 Leave empty to use device tree information.
264 Specify the cpuids of the fast CPUs in the system as a list string,
265 e.g. cpuid 0+1 should be specified as 0-1.
267 config HMP_SLOW_CPU_MASK
268 string "HMP scheduler slow CPU mask"
271 Leave empty to use device tree information.
272 Specify the cpuids of the slow CPUs in the system as a list string,
273 e.g. cpuid 0+1 should be specified as 0-1.
275 config HMP_VARIABLE_SCALE
276 bool "Allows changing the load tracking scale through sysfs"
279 When turned on, this option exports the thresholds and load average
280 period value for the load tracking patches through sysfs.
281 The values can be modified to change the rate of load accumulation
282 and the thresholds used for HMP migration.
283 The load_avg_period_ms is the time in ms to reach a load average of
284 0.5 for an idle task of 0 load average ratio that start a busy loop.
285 The up_threshold and down_threshold is the value to go to a faster
286 CPU or to go back to a slower cpu.
287 The {up,down}_threshold are devided by 1024 before being compared
289 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
290 a running task with a load of 0 will be migrated to a bigger CPU after
291 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
293 This patch has the same behavior as changing the Y of the load
294 average computation to
295 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
296 but it remove intermadiate overflows in computation.
298 config HMP_FREQUENCY_INVARIANT_SCALE
299 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
300 depends on HMP_VARIABLE_SCALE && CPU_FREQ
302 Scales the current load contribution in line with the frequency
303 of the CPU that the task was executed on.
304 In this version, we use a simple linear scale derived from the
305 maximum frequency reported by CPUFreq.
306 Restricting tracked load to be scaled by the CPU's frequency
307 represents the consumption of possible compute capacity
308 (rather than consumption of actual instantaneous capacity as
309 normal) and allows the HMP migration's simple threshold
310 migration strategy to interact more predictably with CPUFreq's
311 asynchronous compute capacity changes.
313 config SCHED_HMP_LITTLE_PACKING
314 bool "Small task packing for HMP"
318 Allows the HMP Scheduler to pack small tasks into CPUs in the
320 Controlled by two sysfs files in sys/kernel/hmp.
321 packing_enable: 1 to enable, 0 to disable packing. Default 1.
322 packing_limit: runqueue load ratio where a RQ is considered
323 to be full. Default is NICE_0_LOAD * 9/8.
326 int "Maximum number of CPUs (2-32)"
329 # These have to remain sorted largest to smallest
333 bool "Support for hot-pluggable CPUs"
336 Say Y here to experiment with turning CPUs off and on. CPUs
337 can be controlled through /sys/devices/system/cpu.
339 source kernel/Kconfig.preempt
345 config ARCH_HAS_HOLES_MEMORYMODEL
346 def_bool y if SPARSEMEM
348 config ARCH_SPARSEMEM_ENABLE
350 select SPARSEMEM_VMEMMAP_ENABLE
352 config ARCH_SPARSEMEM_DEFAULT
353 def_bool ARCH_SPARSEMEM_ENABLE
355 config ARCH_SELECT_MEMORY_MODEL
356 def_bool ARCH_SPARSEMEM_ENABLE
358 config HAVE_ARCH_PFN_VALID
359 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
361 config HW_PERF_EVENTS
362 bool "Enable hardware performance counter support for perf events"
363 depends on PERF_EVENTS
366 Enable hardware performance counter support for perf events. If
367 disabled, perf events will use software events only.
369 config SYS_SUPPORTS_HUGETLBFS
372 config ARCH_WANT_GENERAL_HUGETLB
375 config ARCH_WANT_HUGE_PMD_SHARE
376 def_bool y if !ARM64_64K_PAGES
378 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
383 config FORCE_MAX_ZONEORDER
385 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
393 string "Default kernel command string"
396 Provide a set of default command-line options at build time by
397 entering them here. As a minimum, you should specify the the
398 root device (e.g. root=/dev/nfs).
401 bool "Always use the default kernel command string"
403 Always use the default kernel command string, even if the boot
404 loader passes other arguments to the kernel.
405 This is useful if you cannot or don't want to change the
406 command-line options your boot loader passes to the kernel.
409 bool "UEFI runtime support"
410 depends on OF && !CPU_BIG_ENDIAN
413 select EFI_PARAMS_FROM_FDT
416 This option provides support for runtime services provided
417 by UEFI firmware (such as non-volatile variables, realtime
418 clock, and platform reset). A UEFI stub is also provided to
419 allow the kernel to be booted as an EFI application. This
420 is only useful on systems that have UEFI firmware.
424 menu "Userspace binary formats"
426 source "fs/Kconfig.binfmt"
429 bool "Kernel support for 32-bit EL0"
430 depends on !ARM64_64K_PAGES
431 select COMPAT_BINFMT_ELF
433 select OLD_SIGSUSPEND3
434 select COMPAT_OLD_SIGACTION
436 This option enables support for a 32-bit EL0 running under a 64-bit
437 kernel at EL1. AArch32-specific components such as system calls,
438 the user helper functions, VFP support and the ptrace interface are
439 handled appropriately by the kernel.
441 If you want to execute 32-bit userspace applications, say Y.
443 config SYSVIPC_COMPAT
445 depends on COMPAT && SYSVIPC
449 menu "Power management options"
451 source "kernel/power/Kconfig"
453 source "drivers/cpufreq/Kconfig"
454 config ARCH_SUSPEND_POSSIBLE
457 config ARM64_CPU_SUSPEND
462 menu "CPU Power Management"
464 source "drivers/cpuidle/Kconfig"
470 source "drivers/Kconfig"
472 source "drivers/firmware/Kconfig"
476 source "arch/arm64/kvm/Kconfig"
478 source "arch/arm64/Kconfig.debug"
480 source "security/Kconfig"
482 source "crypto/Kconfig"
484 source "arch/arm64/crypto/Kconfig"