3 select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
4 select ARCH_USE_CMPXCHG_LOCKREF
6 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
7 select ARCH_SUPPORTS_ATOMIC_RMW
8 select ARCH_WANT_OPTIONAL_GPIOLIB
9 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
10 select ARCH_WANT_FRAME_POINTERS
14 select BUILDTIME_EXTABLE_SORT
15 select CLONE_BACKWARDS
17 select CPU_PM if (SUSPEND || CPU_IDLE)
18 select DCACHE_WORD_ACCESS
19 select GENERIC_CLOCKEVENTS
20 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
21 select GENERIC_CPU_AUTOPROBE
22 select GENERIC_EARLY_IOREMAP
24 select GENERIC_IRQ_PROBE
25 select GENERIC_IRQ_SHOW
26 select GENERIC_SMP_IDLE_THREAD
27 select GENERIC_STRNCPY_FROM_USER
28 select GENERIC_STRNLEN_USER
29 select GENERIC_TIME_VSYSCALL
30 select HARDIRQS_SW_RESEND
31 select HAVE_ARCH_JUMP_LABEL
33 select HAVE_ARCH_TRACEHOOK
34 select HAVE_C_RECORDMCOUNT
35 select HAVE_DEBUG_BUGVERBOSE
36 select HAVE_DEBUG_KMEMLEAK
37 select HAVE_DMA_API_DEBUG
39 select HAVE_DMA_CONTIGUOUS
40 select HAVE_DYNAMIC_FTRACE
41 select HAVE_EFFICIENT_UNALIGNED_ACCESS
42 select HAVE_FTRACE_MCOUNT_RECORD
43 select HAVE_FUNCTION_TRACER
44 select HAVE_FUNCTION_GRAPH_TRACER
45 select HAVE_GENERIC_DMA_COHERENT
46 select HAVE_GENERIC_HARDIRQS
47 select HAVE_HW_BREAKPOINT if PERF_EVENTS
49 select HAVE_PATA_PLATFORM
50 select HAVE_PERF_EVENTS
52 select HAVE_PERF_USER_STACK_DUMP
53 select HAVE_SYSCALL_TRACEPOINTS
55 select MODULES_USE_ELF_RELA
58 select OF_EARLY_FLATTREE
59 select OF_RESERVED_MEM
60 select PERF_USE_VMALLOC
65 select SYSCTL_EXCEPTION_TRACE
67 ARM 64-bit (AArch64) Linux support.
72 config ARCH_PHYS_ADDR_T_64BIT
81 config STACKTRACE_SUPPORT
84 config LOCKDEP_SUPPORT
87 config TRACE_IRQFLAGS_SUPPORT
90 config RWSEM_XCHGADD_ALGORITHM
93 config GENERIC_HWEIGHT
99 config GENERIC_CALIBRATE_DELAY
105 config ARCH_DMA_ADDR_T_64BIT
108 config NEED_DMA_MAP_STATE
111 config NEED_SG_DMA_LENGTH
120 config FIX_EARLYCON_MEM
123 source "init/Kconfig"
125 source "kernel/Kconfig.freezer"
127 menu "Platform selection"
130 bool "ARMv8 software model (Versatile Express)"
131 select ARCH_REQUIRE_GPIOLIB
132 select COMMON_CLK_VERSATILE
133 select POWER_RESET_VEXPRESS
134 select VEXPRESS_CONFIG
136 This enables support for the ARMv8 software model (Versatile
140 bool "AppliedMicro X-Gene SOC Family"
142 This enables support for AppliedMicro X-Gene SOC Family
153 menu "Kernel Features"
155 config ARM64_64K_PAGES
156 bool "Enable 64KB pages support"
158 This feature enables 64KB pages support (4KB by default)
159 allowing only two levels of page tables and faster TLB
160 look-up. AArch32 emulation is not available when this feature
163 config CPU_BIG_ENDIAN
164 bool "Build big-endian kernel"
166 Say Y if you plan on running a kernel in big-endian mode.
169 bool "Symmetric Multi-Processing"
170 select USE_GENERIC_SMP_HELPERS
172 This enables support for systems with more than one CPU. If
173 you say N here, the kernel will run on single and
174 multiprocessor machines, but will use only one CPU of a
175 multiprocessor machine. If you say Y here, the kernel will run
176 on many, but not all, single processor machines. On a single
177 processor machine, the kernel will run faster if you say N
180 If you don't know what to do here, say N.
183 bool "Multi-core scheduler support"
186 Multi-core scheduler support improves the CPU scheduler's decision
187 making when dealing with multi-core CPU chips at a cost of slightly
188 increased overhead in some places. If unsure say N here.
191 bool "SMT scheduler support"
194 Improves the CPU scheduler's decision making when dealing with
195 MultiThreading at a cost of slightly increased overhead in some
196 places. If unsure say N here.
198 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
199 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
201 Disables scheduler load-balancing at CPU sched domain level.
204 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
205 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
207 Experimental scheduler optimizations for heterogeneous platforms.
208 Attempts to introspectively select task affinity to optimize power
209 and performance. Basic support for multiple (>2) cpu types is in place,
210 but it has only been tested with two types of cpus.
211 There is currently no support for migration of task groups, hence
212 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
213 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
215 config SCHED_HMP_PRIO_FILTER
216 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
219 Enables task priority based HMP migration filter. Any task with
220 a NICE value above the threshold will always be on low-power cpus
221 with less compute capacity.
223 config SCHED_HMP_PRIO_FILTER_VAL
224 int "NICE priority threshold"
226 depends on SCHED_HMP_PRIO_FILTER
228 config HMP_FAST_CPU_MASK
229 string "HMP scheduler fast CPU mask"
232 Leave empty to use device tree information.
233 Specify the cpuids of the fast CPUs in the system as a list string,
234 e.g. cpuid 0+1 should be specified as 0-1.
236 config HMP_SLOW_CPU_MASK
237 string "HMP scheduler slow CPU mask"
240 Leave empty to use device tree information.
241 Specify the cpuids of the slow CPUs in the system as a list string,
242 e.g. cpuid 0+1 should be specified as 0-1.
244 config HMP_VARIABLE_SCALE
245 bool "Allows changing the load tracking scale through sysfs"
248 When turned on, this option exports the thresholds and load average
249 period value for the load tracking patches through sysfs.
250 The values can be modified to change the rate of load accumulation
251 and the thresholds used for HMP migration.
252 The load_avg_period_ms is the time in ms to reach a load average of
253 0.5 for an idle task of 0 load average ratio that start a busy loop.
254 The up_threshold and down_threshold is the value to go to a faster
255 CPU or to go back to a slower cpu.
256 The {up,down}_threshold are devided by 1024 before being compared
258 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
259 a running task with a load of 0 will be migrated to a bigger CPU after
260 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
262 This patch has the same behavior as changing the Y of the load
263 average computation to
264 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
265 but it remove intermadiate overflows in computation.
267 config HMP_FREQUENCY_INVARIANT_SCALE
268 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
269 depends on HMP_VARIABLE_SCALE && CPU_FREQ
271 Scales the current load contribution in line with the frequency
272 of the CPU that the task was executed on.
273 In this version, we use a simple linear scale derived from the
274 maximum frequency reported by CPUFreq.
275 Restricting tracked load to be scaled by the CPU's frequency
276 represents the consumption of possible compute capacity
277 (rather than consumption of actual instantaneous capacity as
278 normal) and allows the HMP migration's simple threshold
279 migration strategy to interact more predictably with CPUFreq's
280 asynchronous compute capacity changes.
282 config SCHED_HMP_LITTLE_PACKING
283 bool "Small task packing for HMP"
287 Allows the HMP Scheduler to pack small tasks into CPUs in the
289 Controlled by two sysfs files in sys/kernel/hmp.
290 packing_enable: 1 to enable, 0 to disable packing. Default 1.
291 packing_limit: runqueue load ratio where a RQ is considered
292 to be full. Default is NICE_0_LOAD * 9/8.
295 int "Maximum number of CPUs (2-32)"
298 # These have to remain sorted largest to smallest
302 bool "Support for hot-pluggable CPUs"
305 Say Y here to experiment with turning CPUs off and on. CPUs
306 can be controlled through /sys/devices/system/cpu.
308 source kernel/Kconfig.preempt
314 config ARCH_HAS_HOLES_MEMORYMODEL
315 def_bool y if SPARSEMEM
317 config ARCH_SPARSEMEM_ENABLE
319 select SPARSEMEM_VMEMMAP_ENABLE
321 config ARCH_SPARSEMEM_DEFAULT
322 def_bool ARCH_SPARSEMEM_ENABLE
324 config ARCH_SELECT_MEMORY_MODEL
325 def_bool ARCH_SPARSEMEM_ENABLE
327 config HAVE_ARCH_PFN_VALID
328 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
330 config HW_PERF_EVENTS
331 bool "Enable hardware performance counter support for perf events"
332 depends on PERF_EVENTS
335 Enable hardware performance counter support for perf events. If
336 disabled, perf events will use software events only.
338 config SYS_SUPPORTS_HUGETLBFS
341 config ARCH_WANT_GENERAL_HUGETLB
344 config ARCH_WANT_HUGE_PMD_SHARE
345 def_bool y if !ARM64_64K_PAGES
347 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
352 config FORCE_MAX_ZONEORDER
354 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
362 string "Default kernel command string"
365 Provide a set of default command-line options at build time by
366 entering them here. As a minimum, you should specify the the
367 root device (e.g. root=/dev/nfs).
370 prompt "Kernel command line type" if CMDLINE != ""
371 default CMDLINE_FROM_BOOTLOADER
373 config CMDLINE_FROM_BOOTLOADER
374 bool "Use bootloader kernel arguments if available"
376 Uses the command-line options passed by the boot loader. If
377 the boot loader doesn't provide any, the default kernel command
378 string provided in CMDLINE will be used.
380 config CMDLINE_EXTEND
381 bool "Extend bootloader kernel arguments"
383 The command-line arguments provided by the boot loader will be
384 appended to the default kernel command string.
387 bool "Always use the default kernel command string"
389 Always use the default kernel command string, even if the boot
390 loader passes other arguments to the kernel.
391 This is useful if you cannot or don't want to change the
392 command-line options your boot loader passes to the kernel.
395 config BUILD_ARM64_APPENDED_DTB_IMAGE
396 bool "Build a concatenated Image.gz/dtb by default"
399 Enabling this option will cause a concatenated Image.gz and list of
400 DTBs to be built by default (instead of a standalone Image.gz.)
401 The image will built in arch/arm64/boot/Image.gz-dtb
403 config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
404 string "Default dtb names"
405 depends on BUILD_ARM64_APPENDED_DTB_IMAGE
407 Space separated list of names of dtbs to append when
408 building a concatenated Image.gz-dtb.
411 bool "UEFI runtime support"
412 depends on OF && !CPU_BIG_ENDIAN
415 select EFI_PARAMS_FROM_FDT
418 This option provides support for runtime services provided
419 by UEFI firmware (such as non-volatile variables, realtime
420 clock, and platform reset). A UEFI stub is also provided to
421 allow the kernel to be booted as an EFI application. This
422 is only useful on systems that have UEFI firmware.
426 menu "Userspace binary formats"
428 source "fs/Kconfig.binfmt"
431 bool "Kernel support for 32-bit EL0"
432 depends on !ARM64_64K_PAGES
433 select COMPAT_BINFMT_ELF
435 select OLD_SIGSUSPEND3
436 select COMPAT_OLD_SIGACTION
438 This option enables support for a 32-bit EL0 running under a 64-bit
439 kernel at EL1. AArch32-specific components such as system calls,
440 the user helper functions, VFP support and the ptrace interface are
441 handled appropriately by the kernel.
443 If you want to execute 32-bit userspace applications, say Y.
445 config SYSVIPC_COMPAT
447 depends on COMPAT && SYSVIPC
451 menu "Power management options"
453 source "kernel/power/Kconfig"
455 source "drivers/cpufreq/Kconfig"
456 config ARCH_SUSPEND_POSSIBLE
459 config ARM64_CPU_SUSPEND
464 menu "CPU Power Management"
466 source "drivers/cpuidle/Kconfig"
472 source "drivers/Kconfig"
474 source "drivers/firmware/Kconfig"
478 source "arch/arm64/Kconfig.debug"
480 source "security/Kconfig"
482 source "crypto/Kconfig"
484 source "arch/arm64/crypto/Kconfig"