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 ILLEGAL_POINTER_VALUE
79 default 0xdead000000000000
81 config LOCKDEP_SUPPORT
84 config TRACE_IRQFLAGS_SUPPORT
87 config GENERIC_LOCKBREAK
89 depends on SMP && PREEMPT
91 config RWSEM_GENERIC_SPINLOCK
94 config ARCH_HAS_CPUFREQ
97 Internal node to signify that the ARCH has CPUFREQ support
98 and that the relevant menu configurations are displayed for
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 ARM_ERRATA_824069
129 bool "ARM errata: Cache line might not be marked as clean after a CleanShared snoop"
132 This option enables the workaround for erratum 824069
133 affecting Cortex-A53 MPCore with two or more processors (r0p0..r0p2).
134 If a Cortex-A53 processor is executing a store or PLDW instruction at the same time
135 as a processor in another cluster is executing a cache maintenance operation
136 to the same address, then this erratum might cause a clean cache line to be
137 incorrectly marked as dirty. This workaround replaces all cache clean opeartion
138 to clean & invalidate.
140 config KERNEL_MODE_NEON
143 source "init/Kconfig"
145 source "kernel/Kconfig.freezer"
147 menu "Platform selection"
150 bool "ARMv8 software model (Versatile Express)"
151 select ARCH_REQUIRE_GPIOLIB
152 select COMMON_CLK_VERSATILE
153 select POWER_RESET_VEXPRESS
154 select VEXPRESS_CONFIG
156 This enables support for the ARMv8 software model (Versatile
160 bool "MediaTek MT6735"
162 select GENERIC_CLOCKEVENTS
163 select ARCH_HAS_CPUFREQ
167 select NEED_MACH_MEMORY_H
169 select IRQ_DOMAIN_DEBUG
170 select GENERIC_SCHED_CLOCK
171 select MTK_SYSTRACKER
173 select ARMV7_COMPAT_CPUINFO
175 This enable support for MediaTek MT6735
178 bool "MediaTek MT6735M"
180 select GENERIC_CLOCKEVENTS
181 select ARCH_HAS_CPUFREQ
185 select NEED_MACH_MEMORY_H
187 select IRQ_DOMAIN_DEBUG
188 select GENERIC_SCHED_CLOCK
189 select MTK_SYSTRACKER
191 select ARMV7_COMPAT_CPUINFO
193 This enable support for MediaTek MT6735M
196 bool "MediaTek MT6735M"
198 select GENERIC_CLOCKEVENTS
199 select ARCH_HAS_CPUFREQ
203 select NEED_MACH_MEMORY_H
205 select IRQ_DOMAIN_DEBUG
206 select GENERIC_SCHED_CLOCK
207 select MTK_SYSTRACKER
209 select ARMV7_COMPAT_CPUINFO
211 This enable support for MediaTek MT6753
214 bool "MediaTek MT6752"
216 select GENERIC_CLOCKEVENTS
217 select ARCH_HAS_CPUFREQ
221 select NEED_MACH_MEMORY_H
223 select IRQ_DOMAIN_DEBUG
224 select GENERIC_SCHED_CLOCK
225 select MTK_SYSTRACKER
227 select ARCH_REQUIRE_GPIOLIB
231 select ARMV7_COMPAT_CPUINFO
233 This enable support for MediaTek MT6752
236 bool "MediaTek MT6795"
238 select GENERIC_CLOCKEVENTS
239 select ARCH_HAS_CPUFREQ
243 select NEED_MACH_MEMORY_H
246 select IRQ_DOMAIN_DEBUG
247 select GENERIC_SCHED_CLOCK
248 select ARCH_REQUIRE_GPIOLIB
250 select MTK_CPU_STRESS
251 select MTK_SYSTRACKER
254 select ARMV7_COMPAT_CPUINFO
256 This enable support for MediaTek MT6795
259 source "drivers/misc/mediatek/mach/Kconfig"
268 menu "Kernel Features"
270 config ARM64_64K_PAGES
271 bool "Enable 64KB pages support"
273 This feature enables 64KB pages support (4KB by default)
274 allowing only two levels of page tables and faster TLB
275 look-up. AArch32 emulation is not available when this feature
279 bool "Symmetric Multi-Processing"
280 select USE_GENERIC_SMP_HELPERS
282 This enables support for systems with more than one CPU. If
283 you say N here, the kernel will run on single and
284 multiprocessor machines, but will use only one CPU of a
285 multiprocessor machine. If you say Y here, the kernel will run
286 on many, but not all, single processor machines. On a single
287 processor machine, the kernel will run faster if you say N
290 If you don't know what to do here, say N.
292 config ARM_CPU_TOPOLOGY
293 bool "Support CPU topology definition"
297 Support CPU topology definition, based on configuration
298 provided by the firmware.
301 bool "Multi-core scheduler support"
302 depends on ARM_CPU_TOPOLOGY
304 Multi-core scheduler support improves the CPU scheduler's decision
305 making when dealing with multi-core CPU chips at a cost of slightly
306 increased overhead in some places. If unsure say N here.
309 bool "SMT scheduler support"
310 depends on ARM_CPU_TOPOLOGY
312 Improves the CPU scheduler's decision making when dealing with
313 MultiThreading at a cost of slightly increased overhead in some
314 places. If unsure say N here.
316 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
317 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
319 Disables scheduler load-balancing at CPU sched domain level.
322 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
323 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
325 Experimental scheduler optimizations for heterogeneous platforms.
326 Attempts to introspectively select task affinity to optimize power
327 and performance. Basic support for multiple (>2) cpu types is in place,
328 but it has only been tested with two types of cpus.
329 There is currently no support for migration of task groups, hence
330 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
331 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
333 config SCHED_HMP_PRIO_FILTER
334 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
337 Enables task priority based HMP migration filter. Any task with
338 a NICE value above the threshold will always be on low-power cpus
339 with less compute capacity.
341 config SCHED_HMP_PRIO_FILTER_VAL
342 int "NICE priority threshold"
344 depends on SCHED_HMP_PRIO_FILTER
346 config HMP_FAST_CPU_MASK
347 string "HMP scheduler fast CPU mask"
350 Leave empty to use device tree information.
351 Specify the cpuids of the fast CPUs in the system as a list string,
352 e.g. cpuid 0+1 should be specified as 0-1.
354 config HMP_SLOW_CPU_MASK
355 string "HMP scheduler slow CPU mask"
358 Leave empty to use device tree information.
359 Specify the cpuids of the slow CPUs in the system as a list string,
360 e.g. cpuid 0+1 should be specified as 0-1.
362 config HMP_VARIABLE_SCALE
363 bool "Allows changing the load tracking scale through sysfs"
366 When turned on, this option exports the thresholds and load average
367 period value for the load tracking patches through sysfs.
368 The values can be modified to change the rate of load accumulation
369 and the thresholds used for HMP migration.
370 The load_avg_period_ms is the time in ms to reach a load average of
371 0.5 for an idle task of 0 load average ratio that start a busy loop.
372 The up_threshold and down_threshold is the value to go to a faster
373 CPU or to go back to a slower cpu.
374 The {up,down}_threshold are devided by 1024 before being compared
376 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
377 a running task with a load of 0 will be migrated to a bigger CPU after
378 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
380 This patch has the same behavior as changing the Y of the load
381 average computation to
382 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
383 but it remove intermadiate overflows in computation.
386 bool "(EXPERIMENTAL) MET SCHED HMP Info"
387 depends on SCHED_HMP_ENHANCEMENT
388 depends on HMP_TRACER
392 config HMP_FREQUENCY_INVARIANT_SCALE
393 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
394 depends on HMP_VARIABLE_SCALE && CPU_FREQ
395 depends on !ARCH_SCALE_INVARIANT_CPU_CAPACITY
397 Scales the current load contribution in line with the frequency
398 of the CPU that the task was executed on.
399 In this version, we use a simple linear scale derived from the
400 maximum frequency reported by CPUFreq.
401 Restricting tracked load to be scaled by the CPU's frequency
402 represents the consumption of possible compute capacity
403 (rather than consumption of actual instantaneous capacity as
404 normal) and allows the HMP migration's simple threshold
405 migration strategy to interact more predictably with CPUFreq's
406 asynchronous compute capacity changes.
408 config SCHED_HMP_ENHANCEMENT
409 bool "(EXPERIMENTAL) HMP Ennhancement"
415 bool "(EXPERIMENTAL) Profile HMP scheduler"
416 depends on SCHED_HMP_ENHANCEMENT
418 Profile HMP scheduler
420 config HMP_DYNAMIC_THRESHOLD
421 bool "(EXPERIMENTAL) Dynamically adjust task migration threshold"
422 depends on SCHED_HMP_ENHANCEMENT
424 Dynamically adjust task migration threshold according to current system load
426 config HMP_GLOBAL_BALANCE
427 bool "(EXPERIMENTAL) Enhance HMP global load balance"
428 depends on SCHED_HMP_ENHANCEMENT
430 Enhance HMP global load balance
432 config HMP_TASK_ASSIGNMENT
433 bool "(EXPERIMENTAL) Enhance HMP task assignment"
434 depends on SCHED_HMP_ENHANCEMENT
436 Enhance HMP task assignment
438 config HMP_DISCARD_CFS_SELECTION_RESULT
439 bool "(EXPERIMENTAL) Discard CFS runqueue selection result"
440 depends on SCHED_HMP_ENHANCEMENT && HMP_TASK_ASSIGNMENT
442 Discard CFS runqueue selection result even if only one cluster exists
444 config HMP_PACK_SMALL_TASK
445 bool "(EXPERIMENTAL) Packing Small Tasks"
446 depends on SCHED_HMP_ENHANCEMENT
448 This option enables Packing Small Tasks
450 config HMP_PACK_BUDDY_INFO
451 bool "(EXPERIMENTAL) Packing Small Tasks Buddy Information Log"
452 depends on SCHED_HMP_ENHANCEMENT && HMP_PACK_SMALL_TASK
454 This option enables Packing Small Tasks Buddy Information Log
456 config HMP_LAZY_BALANCE
457 bool "(EXPERIMENTAL) Lazy Balance"
458 depends on SCHED_HMP_ENHANCEMENT && HMP_PACK_SMALL_TASK
460 This option enables Lazy Balance
462 config HMP_POWER_AWARE_CONTROLLER
463 bool "(EXPERIMENTAL) Power-aware Scheduler for b.L MP Controller"
464 depends on SCHED_HMP_ENHANCEMENT && HMP_PACK_SMALL_TASK && HMP_LAZY_BALANCE
466 Power-aware scheduler for b.L MP controller and status interface
468 config HEVTASK_INTERFACE
469 bool "task status interface"
471 The option provide an interface to show task status
473 config ARCH_SCALE_INVARIANT_CPU_CAPACITY
474 bool "(EXPERIMENTAL) Scale-Invariant CPU Compute Capacity Recording"
477 Provides a new measure of maximum and instantaneous CPU compute
478 capacity, derived from a table of relative compute performance
479 for each core type present in the system. The table is an
480 estimate and specific core performance may be different for
481 any particular workload. The measure includes the relative
482 performance and a linear scale of current to maximum frequency
483 such that at maximum frequency (as expressed in the DTB) the
484 reported compute capacity will be equal to the estimated
485 performance from the table. Values range between 0 and 1023 where
486 1023 is the highest capacity available in the system.
489 int "Maximum number of CPUs (2-32)"
495 bool "Emulate SWP/SWPB instructions"
497 ARMv6 architecture deprecates use of the SWP/SWPB instructions. ARMv8
498 oblosetes the use of SWP/SWPB instructions. ARMv7 multiprocessing
499 extensions introduce the ability to disable these instructions,
500 triggering an undefined instruction exception when executed. Say Y
501 here to enable software emulation of these instructions for userspace
502 (not kernel) using LDREX/STREX. Also creates /proc/cpu/swp_emulation
505 In some older versions of glibc [<=2.8] SWP is used during futex
506 trylock() operations with the assumption that the code will not
507 be preempted. This invalid assumption may be more likely to fail
508 with SWP emulation enabled, leading to deadlock of the user
511 NOTE: when accessing uncached shared regions, LDREX/STREX rely
512 on an external transaction monitoring block called a global
513 monitor to maintain update atomicity. If your system does not
514 implement a global monitor, this option can cause programs that
515 perform SWP operations to uncached memory to deadlock.
520 bool "Support for hot-pluggable CPUs"
523 Say Y here to experiment with turning CPUs off and on. CPUs
524 can be controlled through /sys/devices/system/cpu.
526 source kernel/Kconfig.preempt
532 config ARCH_HAS_HOLES_MEMORYMODEL
533 def_bool y if SPARSEMEM
535 config ARCH_SPARSEMEM_ENABLE
537 select SPARSEMEM_VMEMMAP_ENABLE
539 config ARCH_SPARSEMEM_DEFAULT
540 def_bool ARCH_SPARSEMEM_ENABLE
542 config ARCH_SELECT_MEMORY_MODEL
543 def_bool ARCH_SPARSEMEM_ENABLE
545 config HAVE_ARCH_PFN_VALID
546 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
548 config HW_PERF_EVENTS
549 bool "Enable hardware performance counter support for perf events"
550 depends on PERF_EVENTS
553 Enable hardware performance counter support for perf events. If
554 disabled, perf events will use software events only.
557 bool "Kernel support for ARMv7 applications"
561 This option enables features that allow that ran on an ARMv7 or older
562 processor to continue functioning.
564 If you want to execute ARMv7 applications, say Y
566 config ARMV7_COMPAT_CPUINFO
567 bool "Report backwards compatible cpu features in /proc/cpuinfo"
568 depends on ARMV7_COMPAT
571 This option makes /proc/cpuinfo list CPU features that an ARMv7 or
572 earlier kernel would report, but are not optional on an ARMv8 or later
575 If you want to execute ARMv7 applications, say Y
580 bool "Enable seccomp to safely compute untrusted bytecode"
582 This kernel feature is useful for number crunching applications
583 that may need to compute untrusted bytecode during their
584 execution. By using pipes or other transports made available to
585 the process as file descriptors supporting the read/write
586 syscalls, it's possible to isolate those applications in
587 their own address space using seccomp. Once seccomp is
588 enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
589 and the task is only allowed to execute a few safe syscalls
590 defined by each seccomp mode.
598 string "Default kernel command string"
601 Provide a set of default command-line options at build time by
602 entering them here. As a minimum, you should specify the the
603 root device (e.g. root=/dev/nfs).
606 prompt "Kernel command line type" if CMDLINE != ""
607 default CMDLINE_FROM_BOOTLOADER
609 config CMDLINE_FROM_BOOTLOADER
610 bool "Use bootloader kernel arguments if available"
612 Uses the command-line options passed by the boot loader. If
613 the boot loader doesn't provide any, the default kernel command
614 string provided in CMDLINE will be used.
616 config CMDLINE_EXTEND
617 bool "Extend bootloader kernel arguments"
619 The command-line arguments provided by the boot loader will be
620 appended to the default kernel command string.
623 bool "Always use the default kernel command string"
625 Always use the default kernel command string, even if the boot
626 loader passes other arguments to the kernel.
627 This is useful if you cannot or don't want to change the
628 command-line options your boot loader passes to the kernel.
631 config BUILD_ARM64_APPENDED_DTB_IMAGE
632 bool "Build a concatenated Image.gz/dtb by default"
635 Enabling this option will cause a concatenated Image.gz and list of
636 DTBs to be built by default (instead of a standalone Image.gz.)
637 The image will built in arch/arm64/boot/Image.gz-dtb
639 config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
640 string "Default dtb names"
641 depends on BUILD_ARM64_APPENDED_DTB_IMAGE
643 Space separated list of names of dtbs to append when
644 building a concatenated Image.gz-dtb.
648 menu "CPU Power Management"
651 source "drivers/cpufreq/Kconfig"
656 menu "Userspace binary formats"
658 source "fs/Kconfig.binfmt"
661 bool "Kernel support for 32-bit EL0"
662 depends on !ARM64_64K_PAGES
663 select COMPAT_BINFMT_ELF
665 select OLD_SIGSUSPEND3
666 select COMPAT_OLD_SIGACTION
668 This option enables support for a 32-bit EL0 running under a 64-bit
669 kernel at EL1. AArch32-specific components such as system calls,
670 the user helper functions, VFP support and the ptrace interface are
671 handled appropriately by the kernel.
673 If you want to execute 32-bit userspace applications, say Y.
675 config SYSVIPC_COMPAT
677 depends on COMPAT && SYSVIPC
681 menu "Power management options"
683 source "kernel/power/Kconfig"
685 config ARCH_SUSPEND_POSSIBLE
686 depends on !ARCH_S5PC100
687 depends on CPU_ARM920T || CPU_ARM926T || CPU_FEROCEON || CPU_SA1100 || \
688 CPU_V6 || CPU_V6K || CPU_V7 || CPU_XSC3 || CPU_XSCALE || CPU_MOHAWK || ARM64
691 config ARM64_CPU_SUSPEND
694 config ARCH_HIBERNATION_POSSIBLE
697 default y if ARCH_SUSPEND_POSSIBLE
703 source "drivers/Kconfig"
707 source "arch/arm64/Kconfig.debug"
709 source "security/Kconfig"
711 source "crypto/Kconfig"
713 source "arch/arm64/crypto/Kconfig"