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_WANT_OPTIONAL_GPIOLIB
10 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
11 select ARCH_WANT_FRAME_POINTERS
16 select BUILDTIME_EXTABLE_SORT
17 select CLONE_BACKWARDS
19 select CPU_PM if (SUSPEND || CPU_IDLE)
20 select DCACHE_WORD_ACCESS
21 select GENERIC_ALLOCATOR
22 select GENERIC_CLOCKEVENTS
23 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
24 select GENERIC_CPU_AUTOPROBE
25 select GENERIC_EARLY_IOREMAP
27 select GENERIC_IRQ_PROBE
28 select GENERIC_IRQ_SHOW
29 select GENERIC_SMP_IDLE_THREAD
30 select GENERIC_STRNCPY_FROM_USER
31 select GENERIC_STRNLEN_USER
32 select GENERIC_TIME_VSYSCALL
33 select HARDIRQS_SW_RESEND
34 select HAVE_ARCH_JUMP_LABEL
36 select HAVE_ARCH_TRACEHOOK
37 select HAVE_C_RECORDMCOUNT
38 select HAVE_CC_STACKPROTECTOR
39 select HAVE_DEBUG_BUGVERBOSE
40 select HAVE_DEBUG_KMEMLEAK
41 select HAVE_DMA_API_DEBUG
43 select HAVE_DMA_CONTIGUOUS
44 select HAVE_DYNAMIC_FTRACE
45 select HAVE_EFFICIENT_UNALIGNED_ACCESS
46 select HAVE_FTRACE_MCOUNT_RECORD
47 select HAVE_FUNCTION_TRACER
48 select HAVE_FUNCTION_GRAPH_TRACER
49 select HAVE_GENERIC_DMA_COHERENT
50 select HAVE_GENERIC_HARDIRQS
51 select HAVE_HW_BREAKPOINT if PERF_EVENTS
53 select HAVE_PATA_PLATFORM
54 select HAVE_PERF_EVENTS
56 select HAVE_PERF_USER_STACK_DUMP
57 select HAVE_SYSCALL_TRACEPOINTS
59 select MODULES_USE_ELF_RELA
62 select OF_EARLY_FLATTREE
63 select OF_RESERVED_MEM
64 select PERF_USE_VMALLOC
69 select SYSCTL_EXCEPTION_TRACE
71 ARM 64-bit (AArch64) Linux support.
76 config ARCH_PHYS_ADDR_T_64BIT
85 config STACKTRACE_SUPPORT
88 config LOCKDEP_SUPPORT
91 config TRACE_IRQFLAGS_SUPPORT
94 config RWSEM_XCHGADD_ALGORITHM
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 FIX_EARLYCON_MEM
127 source "init/Kconfig"
129 source "kernel/Kconfig.freezer"
131 menu "Platform selection"
134 bool "ARMv8 software model (Versatile Express)"
135 select ARCH_REQUIRE_GPIOLIB
136 select COMMON_CLK_VERSATILE
137 select POWER_RESET_VEXPRESS
138 select VEXPRESS_CONFIG
140 This enables support for the ARMv8 software model (Versatile
144 bool "AppliedMicro X-Gene SOC Family"
146 This enables support for AppliedMicro X-Gene SOC Family
157 menu "Kernel Features"
159 config ARM64_64K_PAGES
160 bool "Enable 64KB pages support"
162 This feature enables 64KB pages support (4KB by default)
163 allowing only two levels of page tables and faster TLB
164 look-up. AArch32 emulation is not available when this feature
167 config CPU_BIG_ENDIAN
168 bool "Build big-endian kernel"
170 Say Y if you plan on running a kernel in big-endian mode.
173 bool "Symmetric Multi-Processing"
174 select USE_GENERIC_SMP_HELPERS
176 This enables support for systems with more than one CPU. If
177 you say N here, the kernel will run on single and
178 multiprocessor machines, but will use only one CPU of a
179 multiprocessor machine. If you say Y here, the kernel will run
180 on many, but not all, single processor machines. On a single
181 processor machine, the kernel will run faster if you say N
184 If you don't know what to do here, say N.
187 bool "Multi-core scheduler support"
190 Multi-core scheduler support improves the CPU scheduler's decision
191 making when dealing with multi-core CPU chips at a cost of slightly
192 increased overhead in some places. If unsure say N here.
195 bool "SMT scheduler support"
198 Improves the CPU scheduler's decision making when dealing with
199 MultiThreading at a cost of slightly increased overhead in some
200 places. If unsure say N here.
202 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
203 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
205 Disables scheduler load-balancing at CPU sched domain level.
208 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
209 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
211 Experimental scheduler optimizations for heterogeneous platforms.
212 Attempts to introspectively select task affinity to optimize power
213 and performance. Basic support for multiple (>2) cpu types is in place,
214 but it has only been tested with two types of cpus.
215 There is currently no support for migration of task groups, hence
216 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
217 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
219 config SCHED_HMP_PRIO_FILTER
220 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
223 Enables task priority based HMP migration filter. Any task with
224 a NICE value above the threshold will always be on low-power cpus
225 with less compute capacity.
227 config SCHED_HMP_PRIO_FILTER_VAL
228 int "NICE priority threshold"
230 depends on SCHED_HMP_PRIO_FILTER
232 config HMP_FAST_CPU_MASK
233 string "HMP scheduler fast CPU mask"
236 Leave empty to use device tree information.
237 Specify the cpuids of the fast CPUs in the system as a list string,
238 e.g. cpuid 0+1 should be specified as 0-1.
240 config HMP_SLOW_CPU_MASK
241 string "HMP scheduler slow CPU mask"
244 Leave empty to use device tree information.
245 Specify the cpuids of the slow CPUs in the system as a list string,
246 e.g. cpuid 0+1 should be specified as 0-1.
248 config HMP_VARIABLE_SCALE
249 bool "Allows changing the load tracking scale through sysfs"
252 When turned on, this option exports the thresholds and load average
253 period value for the load tracking patches through sysfs.
254 The values can be modified to change the rate of load accumulation
255 and the thresholds used for HMP migration.
256 The load_avg_period_ms is the time in ms to reach a load average of
257 0.5 for an idle task of 0 load average ratio that start a busy loop.
258 The up_threshold and down_threshold is the value to go to a faster
259 CPU or to go back to a slower cpu.
260 The {up,down}_threshold are devided by 1024 before being compared
262 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
263 a running task with a load of 0 will be migrated to a bigger CPU after
264 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
266 This patch has the same behavior as changing the Y of the load
267 average computation to
268 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
269 but it remove intermadiate overflows in computation.
271 config HMP_FREQUENCY_INVARIANT_SCALE
272 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
273 depends on HMP_VARIABLE_SCALE && CPU_FREQ
275 Scales the current load contribution in line with the frequency
276 of the CPU that the task was executed on.
277 In this version, we use a simple linear scale derived from the
278 maximum frequency reported by CPUFreq.
279 Restricting tracked load to be scaled by the CPU's frequency
280 represents the consumption of possible compute capacity
281 (rather than consumption of actual instantaneous capacity as
282 normal) and allows the HMP migration's simple threshold
283 migration strategy to interact more predictably with CPUFreq's
284 asynchronous compute capacity changes.
286 config SCHED_HMP_LITTLE_PACKING
287 bool "Small task packing for HMP"
291 Allows the HMP Scheduler to pack small tasks into CPUs in the
293 Controlled by two sysfs files in sys/kernel/hmp.
294 packing_enable: 1 to enable, 0 to disable packing. Default 1.
295 packing_limit: runqueue load ratio where a RQ is considered
296 to be full. Default is NICE_0_LOAD * 9/8.
299 int "Maximum number of CPUs (2-32)"
302 # These have to remain sorted largest to smallest
306 bool "Support for hot-pluggable CPUs"
309 Say Y here to experiment with turning CPUs off and on. CPUs
310 can be controlled through /sys/devices/system/cpu.
312 source kernel/Kconfig.preempt
318 config ARCH_HAS_HOLES_MEMORYMODEL
319 def_bool y if SPARSEMEM
321 config ARCH_SPARSEMEM_ENABLE
323 select SPARSEMEM_VMEMMAP_ENABLE
325 config ARCH_SPARSEMEM_DEFAULT
326 def_bool ARCH_SPARSEMEM_ENABLE
328 config ARCH_SELECT_MEMORY_MODEL
329 def_bool ARCH_SPARSEMEM_ENABLE
331 config HAVE_ARCH_PFN_VALID
332 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
334 config HW_PERF_EVENTS
335 bool "Enable hardware performance counter support for perf events"
336 depends on PERF_EVENTS
339 Enable hardware performance counter support for perf events. If
340 disabled, perf events will use software events only.
342 config SYS_SUPPORTS_HUGETLBFS
345 config ARCH_WANT_GENERAL_HUGETLB
348 config ARCH_WANT_HUGE_PMD_SHARE
349 def_bool y if !ARM64_64K_PAGES
351 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
356 config FORCE_MAX_ZONEORDER
358 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
366 string "Default kernel command string"
369 Provide a set of default command-line options at build time by
370 entering them here. As a minimum, you should specify the the
371 root device (e.g. root=/dev/nfs).
374 bool "Always use the default kernel command string"
376 Always use the default kernel command string, even if the boot
377 loader passes other arguments to the kernel.
378 This is useful if you cannot or don't want to change the
379 command-line options your boot loader passes to the kernel.
382 bool "UEFI runtime support"
383 depends on OF && !CPU_BIG_ENDIAN
386 select EFI_PARAMS_FROM_FDT
389 This option provides support for runtime services provided
390 by UEFI firmware (such as non-volatile variables, realtime
391 clock, and platform reset). A UEFI stub is also provided to
392 allow the kernel to be booted as an EFI application. This
393 is only useful on systems that have UEFI firmware.
397 menu "Userspace binary formats"
399 source "fs/Kconfig.binfmt"
402 bool "Kernel support for 32-bit EL0"
403 depends on !ARM64_64K_PAGES
404 select COMPAT_BINFMT_ELF
406 select OLD_SIGSUSPEND3
407 select COMPAT_OLD_SIGACTION
409 This option enables support for a 32-bit EL0 running under a 64-bit
410 kernel at EL1. AArch32-specific components such as system calls,
411 the user helper functions, VFP support and the ptrace interface are
412 handled appropriately by the kernel.
414 If you want to execute 32-bit userspace applications, say Y.
416 config SYSVIPC_COMPAT
418 depends on COMPAT && SYSVIPC
422 menu "Power management options"
424 source "kernel/power/Kconfig"
426 source "drivers/cpufreq/Kconfig"
427 config ARCH_SUSPEND_POSSIBLE
430 config ARM64_CPU_SUSPEND
435 menu "CPU Power Management"
437 source "drivers/cpuidle/Kconfig"
443 source "drivers/Kconfig"
445 source "drivers/firmware/Kconfig"
449 source "arch/arm64/kvm/Kconfig"
451 source "arch/arm64/Kconfig.debug"
453 source "security/Kconfig"
455 source "crypto/Kconfig"
457 source "arch/arm64/crypto/Kconfig"