3 select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
4 select ARCH_SUPPORTS_ATOMIC_RMW
5 select ARCH_WANT_OPTIONAL_GPIOLIB
6 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
7 select ARM_HAS_SG_CHAIN
8 select ARCH_WANT_FRAME_POINTERS
11 select AUDIT_ARCH_COMPAT_GENERIC
12 select CLONE_BACKWARDS
15 select GENERIC_CLOCKEVENTS
16 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
17 select GENERIC_CPU_AUTOPROBE
19 select GENERIC_IRQ_PROBE
20 select GENERIC_IRQ_SHOW
21 select GENERIC_SMP_IDLE_THREAD
22 select GENERIC_TIME_VSYSCALL
23 select HARDIRQS_SW_RESEND
24 select HAVE_ARCH_JUMP_LABEL
25 select HAVE_ARCH_AUDITSYSCALL
26 select HAVE_ARCH_SECCOMP_FILTER
28 select HAVE_ARCH_TRACEHOOK
29 select HAVE_C_RECORDMCOUNT
30 select HAVE_DEBUG_BUGVERBOSE
31 select HAVE_DEBUG_KMEMLEAK
32 select HAVE_DMA_API_DEBUG
34 select HAVE_DYNAMIC_FTRACE
35 select HAVE_FTRACE_MCOUNT_RECORD
36 select HAVE_FUNCTION_TRACER
37 select HAVE_FUNCTION_GRAPH_TRACER
38 select HAVE_GENERIC_DMA_COHERENT
39 select HAVE_GENERIC_HARDIRQS
40 select HAVE_HW_BREAKPOINT if PERF_EVENTS
42 select HAVE_PERF_EVENTS
43 select HAVE_SYSCALL_TRACEPOINTS
45 select MODULES_USE_ELF_RELA
48 select OF_EARLY_FLATTREE
49 select OF_RESERVED_MEM
50 select PERF_USE_VMALLOC
55 select SYSCTL_EXCEPTION_TRACE
57 ARM 64-bit (AArch64) Linux support.
59 config ARM_HAS_SG_CHAIN
65 config ARCH_PHYS_ADDR_T_64BIT
74 config STACKTRACE_SUPPORT
77 config LOCKDEP_SUPPORT
80 config TRACE_IRQFLAGS_SUPPORT
83 config GENERIC_LOCKBREAK
85 depends on SMP && PREEMPT
87 config RWSEM_GENERIC_SPINLOCK
90 config ARCH_HAS_CPUFREQ
93 Internal node to signify that the ARCH has CPUFREQ support
94 and that the relevant menu configurations are displayed for
97 config GENERIC_HWEIGHT
103 config GENERIC_CALIBRATE_DELAY
109 config ARCH_DMA_ADDR_T_64BIT
112 config NEED_DMA_MAP_STATE
115 config NEED_SG_DMA_LENGTH
124 config ARM_ERRATA_824069
125 bool "ARM errata: Cache line might not be marked as clean after a CleanShared snoop"
128 This option enables the workaround for erratum 824069
129 affecting Cortex-A53 MPCore with two or more processors (r0p0..r0p2).
130 If a Cortex-A53 processor is executing a store or PLDW instruction at the same time
131 as a processor in another cluster is executing a cache maintenance operation
132 to the same address, then this erratum might cause a clean cache line to be
133 incorrectly marked as dirty. This workaround replaces all cache clean opeartion
134 to clean & invalidate.
136 config KERNEL_MODE_NEON
139 source "init/Kconfig"
141 source "kernel/Kconfig.freezer"
143 menu "Platform selection"
146 bool "ARMv8 software model (Versatile Express)"
147 select ARCH_REQUIRE_GPIOLIB
148 select COMMON_CLK_VERSATILE
149 select POWER_RESET_VEXPRESS
150 select VEXPRESS_CONFIG
152 This enables support for the ARMv8 software model (Versatile
156 bool "MediaTek MT6735"
158 select GENERIC_CLOCKEVENTS
159 select ARCH_HAS_CPUFREQ
163 select NEED_MACH_MEMORY_H
165 select IRQ_DOMAIN_DEBUG
166 select GENERIC_SCHED_CLOCK
167 select MTK_SYSTRACKER
169 select ARMV7_COMPAT_CPUINFO
171 This enable support for MediaTek MT6735
174 bool "MediaTek MT6735M"
176 select GENERIC_CLOCKEVENTS
177 select ARCH_HAS_CPUFREQ
181 select NEED_MACH_MEMORY_H
183 select IRQ_DOMAIN_DEBUG
184 select GENERIC_SCHED_CLOCK
185 select MTK_SYSTRACKER
187 select ARMV7_COMPAT_CPUINFO
189 This enable support for MediaTek MT6735M
192 bool "MediaTek MT6735M"
194 select GENERIC_CLOCKEVENTS
195 select ARCH_HAS_CPUFREQ
199 select NEED_MACH_MEMORY_H
201 select IRQ_DOMAIN_DEBUG
202 select GENERIC_SCHED_CLOCK
203 select MTK_SYSTRACKER
205 select ARMV7_COMPAT_CPUINFO
207 This enable support for MediaTek MT6753
210 bool "MediaTek MT6752"
212 select GENERIC_CLOCKEVENTS
213 select ARCH_HAS_CPUFREQ
217 select NEED_MACH_MEMORY_H
219 select IRQ_DOMAIN_DEBUG
220 select GENERIC_SCHED_CLOCK
221 select MTK_SYSTRACKER
223 select ARCH_REQUIRE_GPIOLIB
227 select ARMV7_COMPAT_CPUINFO
229 This enable support for MediaTek MT6752
232 bool "MediaTek MT6795"
234 select GENERIC_CLOCKEVENTS
235 select ARCH_HAS_CPUFREQ
239 select NEED_MACH_MEMORY_H
242 select IRQ_DOMAIN_DEBUG
243 select GENERIC_SCHED_CLOCK
244 select ARCH_REQUIRE_GPIOLIB
246 select MTK_CPU_STRESS
247 select MTK_SYSTRACKER
250 select ARMV7_COMPAT_CPUINFO
252 This enable support for MediaTek MT6795
255 source "drivers/misc/mediatek/mach/Kconfig"
264 menu "Kernel Features"
266 config ARM64_64K_PAGES
267 bool "Enable 64KB pages support"
269 This feature enables 64KB pages support (4KB by default)
270 allowing only two levels of page tables and faster TLB
271 look-up. AArch32 emulation is not available when this feature
275 bool "Symmetric Multi-Processing"
276 select USE_GENERIC_SMP_HELPERS
278 This enables support for systems with more than one CPU. If
279 you say N here, the kernel will run on single and
280 multiprocessor machines, but will use only one CPU of a
281 multiprocessor machine. If you say Y here, the kernel will run
282 on many, but not all, single processor machines. On a single
283 processor machine, the kernel will run faster if you say N
286 If you don't know what to do here, say N.
288 config ARM_CPU_TOPOLOGY
289 bool "Support CPU topology definition"
293 Support CPU topology definition, based on configuration
294 provided by the firmware.
297 bool "Multi-core scheduler support"
298 depends on ARM_CPU_TOPOLOGY
300 Multi-core scheduler support improves the CPU scheduler's decision
301 making when dealing with multi-core CPU chips at a cost of slightly
302 increased overhead in some places. If unsure say N here.
305 bool "SMT scheduler support"
306 depends on ARM_CPU_TOPOLOGY
308 Improves the CPU scheduler's decision making when dealing with
309 MultiThreading at a cost of slightly increased overhead in some
310 places. If unsure say N here.
312 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
313 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
315 Disables scheduler load-balancing at CPU sched domain level.
318 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
319 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
321 Experimental scheduler optimizations for heterogeneous platforms.
322 Attempts to introspectively select task affinity to optimize power
323 and performance. Basic support for multiple (>2) cpu types is in place,
324 but it has only been tested with two types of cpus.
325 There is currently no support for migration of task groups, hence
326 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
327 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
329 config SCHED_HMP_PRIO_FILTER
330 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
333 Enables task priority based HMP migration filter. Any task with
334 a NICE value above the threshold will always be on low-power cpus
335 with less compute capacity.
337 config SCHED_HMP_PRIO_FILTER_VAL
338 int "NICE priority threshold"
340 depends on SCHED_HMP_PRIO_FILTER
342 config HMP_FAST_CPU_MASK
343 string "HMP scheduler fast CPU mask"
346 Leave empty to use device tree information.
347 Specify the cpuids of the fast CPUs in the system as a list string,
348 e.g. cpuid 0+1 should be specified as 0-1.
350 config HMP_SLOW_CPU_MASK
351 string "HMP scheduler slow CPU mask"
354 Leave empty to use device tree information.
355 Specify the cpuids of the slow CPUs in the system as a list string,
356 e.g. cpuid 0+1 should be specified as 0-1.
358 config HMP_VARIABLE_SCALE
359 bool "Allows changing the load tracking scale through sysfs"
362 When turned on, this option exports the thresholds and load average
363 period value for the load tracking patches through sysfs.
364 The values can be modified to change the rate of load accumulation
365 and the thresholds used for HMP migration.
366 The load_avg_period_ms is the time in ms to reach a load average of
367 0.5 for an idle task of 0 load average ratio that start a busy loop.
368 The up_threshold and down_threshold is the value to go to a faster
369 CPU or to go back to a slower cpu.
370 The {up,down}_threshold are devided by 1024 before being compared
372 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
373 a running task with a load of 0 will be migrated to a bigger CPU after
374 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
376 This patch has the same behavior as changing the Y of the load
377 average computation to
378 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
379 but it remove intermadiate overflows in computation.
382 bool "(EXPERIMENTAL) MET SCHED HMP Info"
383 depends on SCHED_HMP_ENHANCEMENT
384 depends on HMP_TRACER
388 config HMP_FREQUENCY_INVARIANT_SCALE
389 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
390 depends on HMP_VARIABLE_SCALE && CPU_FREQ
391 depends on !ARCH_SCALE_INVARIANT_CPU_CAPACITY
393 Scales the current load contribution in line with the frequency
394 of the CPU that the task was executed on.
395 In this version, we use a simple linear scale derived from the
396 maximum frequency reported by CPUFreq.
397 Restricting tracked load to be scaled by the CPU's frequency
398 represents the consumption of possible compute capacity
399 (rather than consumption of actual instantaneous capacity as
400 normal) and allows the HMP migration's simple threshold
401 migration strategy to interact more predictably with CPUFreq's
402 asynchronous compute capacity changes.
404 config SCHED_HMP_ENHANCEMENT
405 bool "(EXPERIMENTAL) HMP Ennhancement"
411 bool "(EXPERIMENTAL) Profile HMP scheduler"
412 depends on SCHED_HMP_ENHANCEMENT
414 Profile HMP scheduler
416 config HMP_DYNAMIC_THRESHOLD
417 bool "(EXPERIMENTAL) Dynamically adjust task migration threshold"
418 depends on SCHED_HMP_ENHANCEMENT
420 Dynamically adjust task migration threshold according to current system load
422 config HMP_GLOBAL_BALANCE
423 bool "(EXPERIMENTAL) Enhance HMP global load balance"
424 depends on SCHED_HMP_ENHANCEMENT
426 Enhance HMP global load balance
428 config HMP_TASK_ASSIGNMENT
429 bool "(EXPERIMENTAL) Enhance HMP task assignment"
430 depends on SCHED_HMP_ENHANCEMENT
432 Enhance HMP task assignment
434 config HMP_DISCARD_CFS_SELECTION_RESULT
435 bool "(EXPERIMENTAL) Discard CFS runqueue selection result"
436 depends on SCHED_HMP_ENHANCEMENT && HMP_TASK_ASSIGNMENT
438 Discard CFS runqueue selection result even if only one cluster exists
440 config HMP_PACK_SMALL_TASK
441 bool "(EXPERIMENTAL) Packing Small Tasks"
442 depends on SCHED_HMP_ENHANCEMENT
444 This option enables Packing Small Tasks
446 config HMP_PACK_BUDDY_INFO
447 bool "(EXPERIMENTAL) Packing Small Tasks Buddy Information Log"
448 depends on SCHED_HMP_ENHANCEMENT && HMP_PACK_SMALL_TASK
450 This option enables Packing Small Tasks Buddy Information Log
452 config HMP_LAZY_BALANCE
453 bool "(EXPERIMENTAL) Lazy Balance"
454 depends on SCHED_HMP_ENHANCEMENT && HMP_PACK_SMALL_TASK
456 This option enables Lazy Balance
458 config HMP_POWER_AWARE_CONTROLLER
459 bool "(EXPERIMENTAL) Power-aware Scheduler for b.L MP Controller"
460 depends on SCHED_HMP_ENHANCEMENT && HMP_PACK_SMALL_TASK && HMP_LAZY_BALANCE
462 Power-aware scheduler for b.L MP controller and status interface
464 config HEVTASK_INTERFACE
465 bool "task status interface"
467 The option provide an interface to show task status
469 config ARCH_SCALE_INVARIANT_CPU_CAPACITY
470 bool "(EXPERIMENTAL) Scale-Invariant CPU Compute Capacity Recording"
473 Provides a new measure of maximum and instantaneous CPU compute
474 capacity, derived from a table of relative compute performance
475 for each core type present in the system. The table is an
476 estimate and specific core performance may be different for
477 any particular workload. The measure includes the relative
478 performance and a linear scale of current to maximum frequency
479 such that at maximum frequency (as expressed in the DTB) the
480 reported compute capacity will be equal to the estimated
481 performance from the table. Values range between 0 and 1023 where
482 1023 is the highest capacity available in the system.
485 int "Maximum number of CPUs (2-32)"
491 bool "Emulate SWP/SWPB instructions"
493 ARMv6 architecture deprecates use of the SWP/SWPB instructions. ARMv8
494 oblosetes the use of SWP/SWPB instructions. ARMv7 multiprocessing
495 extensions introduce the ability to disable these instructions,
496 triggering an undefined instruction exception when executed. Say Y
497 here to enable software emulation of these instructions for userspace
498 (not kernel) using LDREX/STREX. Also creates /proc/cpu/swp_emulation
501 In some older versions of glibc [<=2.8] SWP is used during futex
502 trylock() operations with the assumption that the code will not
503 be preempted. This invalid assumption may be more likely to fail
504 with SWP emulation enabled, leading to deadlock of the user
507 NOTE: when accessing uncached shared regions, LDREX/STREX rely
508 on an external transaction monitoring block called a global
509 monitor to maintain update atomicity. If your system does not
510 implement a global monitor, this option can cause programs that
511 perform SWP operations to uncached memory to deadlock.
516 bool "Support for hot-pluggable CPUs"
519 Say Y here to experiment with turning CPUs off and on. CPUs
520 can be controlled through /sys/devices/system/cpu.
522 source kernel/Kconfig.preempt
528 config ARCH_HAS_HOLES_MEMORYMODEL
529 def_bool y if SPARSEMEM
531 config ARCH_SPARSEMEM_ENABLE
533 select SPARSEMEM_VMEMMAP_ENABLE
535 config ARCH_SPARSEMEM_DEFAULT
536 def_bool ARCH_SPARSEMEM_ENABLE
538 config ARCH_SELECT_MEMORY_MODEL
539 def_bool ARCH_SPARSEMEM_ENABLE
541 config HAVE_ARCH_PFN_VALID
542 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
544 config HW_PERF_EVENTS
545 bool "Enable hardware performance counter support for perf events"
546 depends on PERF_EVENTS
549 Enable hardware performance counter support for perf events. If
550 disabled, perf events will use software events only.
553 bool "Kernel support for ARMv7 applications"
557 This option enables features that allow that ran on an ARMv7 or older
558 processor to continue functioning.
560 If you want to execute ARMv7 applications, say Y
562 config ARMV7_COMPAT_CPUINFO
563 bool "Report backwards compatible cpu features in /proc/cpuinfo"
564 depends on ARMV7_COMPAT
567 This option makes /proc/cpuinfo list CPU features that an ARMv7 or
568 earlier kernel would report, but are not optional on an ARMv8 or later
571 If you want to execute ARMv7 applications, say Y
576 bool "Enable seccomp to safely compute untrusted bytecode"
578 This kernel feature is useful for number crunching applications
579 that may need to compute untrusted bytecode during their
580 execution. By using pipes or other transports made available to
581 the process as file descriptors supporting the read/write
582 syscalls, it's possible to isolate those applications in
583 their own address space using seccomp. Once seccomp is
584 enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
585 and the task is only allowed to execute a few safe syscalls
586 defined by each seccomp mode.
594 string "Default kernel command string"
597 Provide a set of default command-line options at build time by
598 entering them here. As a minimum, you should specify the the
599 root device (e.g. root=/dev/nfs).
602 prompt "Kernel command line type" if CMDLINE != ""
603 default CMDLINE_FROM_BOOTLOADER
605 config CMDLINE_FROM_BOOTLOADER
606 bool "Use bootloader kernel arguments if available"
608 Uses the command-line options passed by the boot loader. If
609 the boot loader doesn't provide any, the default kernel command
610 string provided in CMDLINE will be used.
612 config CMDLINE_EXTEND
613 bool "Extend bootloader kernel arguments"
615 The command-line arguments provided by the boot loader will be
616 appended to the default kernel command string.
619 bool "Always use the default kernel command string"
621 Always use the default kernel command string, even if the boot
622 loader passes other arguments to the kernel.
623 This is useful if you cannot or don't want to change the
624 command-line options your boot loader passes to the kernel.
627 config BUILD_ARM64_APPENDED_DTB_IMAGE
628 bool "Build a concatenated Image.gz/dtb by default"
631 Enabling this option will cause a concatenated Image.gz and list of
632 DTBs to be built by default (instead of a standalone Image.gz.)
633 The image will built in arch/arm64/boot/Image.gz-dtb
635 config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
636 string "Default dtb names"
637 depends on BUILD_ARM64_APPENDED_DTB_IMAGE
639 Space separated list of names of dtbs to append when
640 building a concatenated Image.gz-dtb.
644 menu "CPU Power Management"
647 source "drivers/cpufreq/Kconfig"
652 menu "Userspace binary formats"
654 source "fs/Kconfig.binfmt"
657 bool "Kernel support for 32-bit EL0"
658 depends on !ARM64_64K_PAGES
659 select COMPAT_BINFMT_ELF
661 select OLD_SIGSUSPEND3
662 select COMPAT_OLD_SIGACTION
664 This option enables support for a 32-bit EL0 running under a 64-bit
665 kernel at EL1. AArch32-specific components such as system calls,
666 the user helper functions, VFP support and the ptrace interface are
667 handled appropriately by the kernel.
669 If you want to execute 32-bit userspace applications, say Y.
671 config SYSVIPC_COMPAT
673 depends on COMPAT && SYSVIPC
677 menu "Power management options"
679 source "kernel/power/Kconfig"
681 config ARCH_SUSPEND_POSSIBLE
682 depends on !ARCH_S5PC100
683 depends on CPU_ARM920T || CPU_ARM926T || CPU_FEROCEON || CPU_SA1100 || \
684 CPU_V6 || CPU_V6K || CPU_V7 || CPU_XSC3 || CPU_XSCALE || CPU_MOHAWK || ARM64
687 config ARM64_CPU_SUSPEND
690 config ARCH_HIBERNATION_POSSIBLE
693 default y if ARCH_SUSPEND_POSSIBLE
699 source "drivers/Kconfig"
703 source "arch/arm64/Kconfig.debug"
705 source "security/Kconfig"
707 source "crypto/Kconfig"
709 source "arch/arm64/crypto/Kconfig"