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 PERF_USE_VMALLOC
64 select SYSCTL_EXCEPTION_TRACE
66 ARM 64-bit (AArch64) Linux support.
71 config ARCH_PHYS_ADDR_T_64BIT
80 config STACKTRACE_SUPPORT
83 config LOCKDEP_SUPPORT
86 config TRACE_IRQFLAGS_SUPPORT
89 config RWSEM_XCHGADD_ALGORITHM
92 config GENERIC_HWEIGHT
98 config GENERIC_CALIBRATE_DELAY
104 config ARCH_DMA_ADDR_T_64BIT
107 config NEED_DMA_MAP_STATE
110 config NEED_SG_DMA_LENGTH
119 config FIX_EARLYCON_MEM
122 source "init/Kconfig"
124 source "kernel/Kconfig.freezer"
126 menu "Platform selection"
129 bool "ARMv8 software model (Versatile Express)"
130 select ARCH_REQUIRE_GPIOLIB
131 select COMMON_CLK_VERSATILE
132 select POWER_RESET_VEXPRESS
133 select VEXPRESS_CONFIG
135 This enables support for the ARMv8 software model (Versatile
139 bool "AppliedMicro X-Gene SOC Family"
141 This enables support for AppliedMicro X-Gene SOC Family
152 menu "Kernel Features"
154 config ARM64_64K_PAGES
155 bool "Enable 64KB pages support"
157 This feature enables 64KB pages support (4KB by default)
158 allowing only two levels of page tables and faster TLB
159 look-up. AArch32 emulation is not available when this feature
162 config CPU_BIG_ENDIAN
163 bool "Build big-endian kernel"
165 Say Y if you plan on running a kernel in big-endian mode.
168 bool "Symmetric Multi-Processing"
169 select USE_GENERIC_SMP_HELPERS
171 This enables support for systems with more than one CPU. If
172 you say N here, the kernel will run on single and
173 multiprocessor machines, but will use only one CPU of a
174 multiprocessor machine. If you say Y here, the kernel will run
175 on many, but not all, single processor machines. On a single
176 processor machine, the kernel will run faster if you say N
179 If you don't know what to do here, say N.
182 bool "Multi-core scheduler support"
185 Multi-core scheduler support improves the CPU scheduler's decision
186 making when dealing with multi-core CPU chips at a cost of slightly
187 increased overhead in some places. If unsure say N here.
190 bool "SMT scheduler support"
193 Improves the CPU scheduler's decision making when dealing with
194 MultiThreading at a cost of slightly increased overhead in some
195 places. If unsure say N here.
197 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
198 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
200 Disables scheduler load-balancing at CPU sched domain level.
203 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
204 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
206 Experimental scheduler optimizations for heterogeneous platforms.
207 Attempts to introspectively select task affinity to optimize power
208 and performance. Basic support for multiple (>2) cpu types is in place,
209 but it has only been tested with two types of cpus.
210 There is currently no support for migration of task groups, hence
211 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
212 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
214 config SCHED_HMP_PRIO_FILTER
215 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
218 Enables task priority based HMP migration filter. Any task with
219 a NICE value above the threshold will always be on low-power cpus
220 with less compute capacity.
222 config SCHED_HMP_PRIO_FILTER_VAL
223 int "NICE priority threshold"
225 depends on SCHED_HMP_PRIO_FILTER
227 config HMP_FAST_CPU_MASK
228 string "HMP scheduler fast CPU mask"
231 Leave empty to use device tree information.
232 Specify the cpuids of the fast CPUs in the system as a list string,
233 e.g. cpuid 0+1 should be specified as 0-1.
235 config HMP_SLOW_CPU_MASK
236 string "HMP scheduler slow CPU mask"
239 Leave empty to use device tree information.
240 Specify the cpuids of the slow CPUs in the system as a list string,
241 e.g. cpuid 0+1 should be specified as 0-1.
243 config HMP_VARIABLE_SCALE
244 bool "Allows changing the load tracking scale through sysfs"
247 When turned on, this option exports the thresholds and load average
248 period value for the load tracking patches through sysfs.
249 The values can be modified to change the rate of load accumulation
250 and the thresholds used for HMP migration.
251 The load_avg_period_ms is the time in ms to reach a load average of
252 0.5 for an idle task of 0 load average ratio that start a busy loop.
253 The up_threshold and down_threshold is the value to go to a faster
254 CPU or to go back to a slower cpu.
255 The {up,down}_threshold are devided by 1024 before being compared
257 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
258 a running task with a load of 0 will be migrated to a bigger CPU after
259 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
261 This patch has the same behavior as changing the Y of the load
262 average computation to
263 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
264 but it remove intermadiate overflows in computation.
266 config HMP_FREQUENCY_INVARIANT_SCALE
267 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
268 depends on HMP_VARIABLE_SCALE && CPU_FREQ
270 Scales the current load contribution in line with the frequency
271 of the CPU that the task was executed on.
272 In this version, we use a simple linear scale derived from the
273 maximum frequency reported by CPUFreq.
274 Restricting tracked load to be scaled by the CPU's frequency
275 represents the consumption of possible compute capacity
276 (rather than consumption of actual instantaneous capacity as
277 normal) and allows the HMP migration's simple threshold
278 migration strategy to interact more predictably with CPUFreq's
279 asynchronous compute capacity changes.
281 config SCHED_HMP_LITTLE_PACKING
282 bool "Small task packing for HMP"
286 Allows the HMP Scheduler to pack small tasks into CPUs in the
288 Controlled by two sysfs files in sys/kernel/hmp.
289 packing_enable: 1 to enable, 0 to disable packing. Default 1.
290 packing_limit: runqueue load ratio where a RQ is considered
291 to be full. Default is NICE_0_LOAD * 9/8.
294 int "Maximum number of CPUs (2-32)"
297 # These have to remain sorted largest to smallest
301 bool "Support for hot-pluggable CPUs"
304 Say Y here to experiment with turning CPUs off and on. CPUs
305 can be controlled through /sys/devices/system/cpu.
307 source kernel/Kconfig.preempt
313 config ARCH_HAS_HOLES_MEMORYMODEL
314 def_bool y if SPARSEMEM
316 config ARCH_SPARSEMEM_ENABLE
318 select SPARSEMEM_VMEMMAP_ENABLE
320 config ARCH_SPARSEMEM_DEFAULT
321 def_bool ARCH_SPARSEMEM_ENABLE
323 config ARCH_SELECT_MEMORY_MODEL
324 def_bool ARCH_SPARSEMEM_ENABLE
326 config HAVE_ARCH_PFN_VALID
327 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
329 config HW_PERF_EVENTS
330 bool "Enable hardware performance counter support for perf events"
331 depends on PERF_EVENTS
334 Enable hardware performance counter support for perf events. If
335 disabled, perf events will use software events only.
337 config SYS_SUPPORTS_HUGETLBFS
340 config ARCH_WANT_GENERAL_HUGETLB
343 config ARCH_WANT_HUGE_PMD_SHARE
344 def_bool y if !ARM64_64K_PAGES
346 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
351 config FORCE_MAX_ZONEORDER
353 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
361 string "Default kernel command string"
364 Provide a set of default command-line options at build time by
365 entering them here. As a minimum, you should specify the the
366 root device (e.g. root=/dev/nfs).
369 bool "Always use the default kernel command string"
371 Always use the default kernel command string, even if the boot
372 loader passes other arguments to the kernel.
373 This is useful if you cannot or don't want to change the
374 command-line options your boot loader passes to the kernel.
377 bool "UEFI runtime support"
378 depends on OF && !CPU_BIG_ENDIAN
381 select EFI_PARAMS_FROM_FDT
384 This option provides support for runtime services provided
385 by UEFI firmware (such as non-volatile variables, realtime
386 clock, and platform reset). A UEFI stub is also provided to
387 allow the kernel to be booted as an EFI application. This
388 is only useful on systems that have UEFI firmware.
392 menu "Userspace binary formats"
394 source "fs/Kconfig.binfmt"
397 bool "Kernel support for 32-bit EL0"
398 depends on !ARM64_64K_PAGES
399 select COMPAT_BINFMT_ELF
401 select OLD_SIGSUSPEND3
402 select COMPAT_OLD_SIGACTION
404 This option enables support for a 32-bit EL0 running under a 64-bit
405 kernel at EL1. AArch32-specific components such as system calls,
406 the user helper functions, VFP support and the ptrace interface are
407 handled appropriately by the kernel.
409 If you want to execute 32-bit userspace applications, say Y.
411 config SYSVIPC_COMPAT
413 depends on COMPAT && SYSVIPC
417 menu "Power management options"
419 source "kernel/power/Kconfig"
421 source "drivers/cpufreq/Kconfig"
422 config ARCH_SUSPEND_POSSIBLE
425 config ARM64_CPU_SUSPEND
430 menu "CPU Power Management"
432 source "drivers/cpuidle/Kconfig"
438 source "drivers/Kconfig"
440 source "drivers/firmware/Kconfig"
444 source "arch/arm64/Kconfig.debug"
446 source "security/Kconfig"
448 source "crypto/Kconfig"
450 source "arch/arm64/crypto/Kconfig"