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_WANT_OPTIONAL_GPIOLIB
8 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
9 select ARCH_WANT_FRAME_POINTERS
13 select BUILDTIME_EXTABLE_SORT
14 select CLONE_BACKWARDS
16 select CPU_PM if (SUSPEND || CPU_IDLE)
17 select DCACHE_WORD_ACCESS
18 select GENERIC_CLOCKEVENTS
19 select GENERIC_CLOCKEVENTS_BROADCAST if SMP
20 select GENERIC_EARLY_IOREMAP
22 select GENERIC_IRQ_PROBE
23 select GENERIC_IRQ_SHOW
24 select GENERIC_SMP_IDLE_THREAD
25 select GENERIC_STRNCPY_FROM_USER
26 select GENERIC_STRNLEN_USER
27 select GENERIC_TIME_VSYSCALL
28 select HARDIRQS_SW_RESEND
29 select HAVE_ARCH_JUMP_LABEL
31 select HAVE_ARCH_TRACEHOOK
32 select HAVE_DEBUG_BUGVERBOSE
33 select HAVE_DEBUG_KMEMLEAK
34 select HAVE_DMA_API_DEBUG
36 select HAVE_DMA_CONTIGUOUS
37 select HAVE_EFFICIENT_UNALIGNED_ACCESS
38 select HAVE_GENERIC_DMA_COHERENT
39 select HAVE_GENERIC_HARDIRQS
40 select HAVE_HW_BREAKPOINT if PERF_EVENTS
42 select HAVE_PATA_PLATFORM
43 select HAVE_PERF_EVENTS
45 select HAVE_PERF_USER_STACK_DUMP
47 select MODULES_USE_ELF_RELA
50 select OF_EARLY_FLATTREE
51 select PERF_USE_VMALLOC
56 select SYSCTL_EXCEPTION_TRACE
58 ARM 64-bit (AArch64) Linux support.
63 config ARCH_PHYS_ADDR_T_64BIT
72 config STACKTRACE_SUPPORT
75 config LOCKDEP_SUPPORT
78 config TRACE_IRQFLAGS_SUPPORT
81 config RWSEM_XCHGADD_ALGORITHM
84 config GENERIC_HWEIGHT
90 config GENERIC_CALIBRATE_DELAY
96 config ARCH_DMA_ADDR_T_64BIT
99 config NEED_DMA_MAP_STATE
102 config NEED_SG_DMA_LENGTH
111 config FIX_EARLYCON_MEM
114 source "init/Kconfig"
116 source "kernel/Kconfig.freezer"
118 menu "Platform selection"
121 bool "ARMv8 software model (Versatile Express)"
122 select ARCH_REQUIRE_GPIOLIB
123 select COMMON_CLK_VERSATILE
124 select POWER_RESET_VEXPRESS
125 select VEXPRESS_CONFIG
127 This enables support for the ARMv8 software model (Versatile
131 bool "AppliedMicro X-Gene SOC Family"
133 This enables support for AppliedMicro X-Gene SOC Family
144 menu "Kernel Features"
146 config ARM64_64K_PAGES
147 bool "Enable 64KB pages support"
149 This feature enables 64KB pages support (4KB by default)
150 allowing only two levels of page tables and faster TLB
151 look-up. AArch32 emulation is not available when this feature
154 config CPU_BIG_ENDIAN
155 bool "Build big-endian kernel"
157 Say Y if you plan on running a kernel in big-endian mode.
160 bool "Symmetric Multi-Processing"
161 select USE_GENERIC_SMP_HELPERS
163 This enables support for systems with more than one CPU. If
164 you say N here, the kernel will run on single and
165 multiprocessor machines, but will use only one CPU of a
166 multiprocessor machine. If you say Y here, the kernel will run
167 on many, but not all, single processor machines. On a single
168 processor machine, the kernel will run faster if you say N
171 If you don't know what to do here, say N.
174 bool "Multi-core scheduler support"
177 Multi-core scheduler support improves the CPU scheduler's decision
178 making when dealing with multi-core CPU chips at a cost of slightly
179 increased overhead in some places. If unsure say N here.
182 bool "SMT scheduler support"
185 Improves the CPU scheduler's decision making when dealing with
186 MultiThreading at a cost of slightly increased overhead in some
187 places. If unsure say N here.
189 config DISABLE_CPU_SCHED_DOMAIN_BALANCE
190 bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing"
192 Disables scheduler load-balancing at CPU sched domain level.
195 bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling"
196 depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP
198 Experimental scheduler optimizations for heterogeneous platforms.
199 Attempts to introspectively select task affinity to optimize power
200 and performance. Basic support for multiple (>2) cpu types is in place,
201 but it has only been tested with two types of cpus.
202 There is currently no support for migration of task groups, hence
203 !SCHED_AUTOGROUP. Furthermore, normal load-balancing must be disabled
204 between cpus of different type (DISABLE_CPU_SCHED_DOMAIN_BALANCE).
206 config SCHED_HMP_PRIO_FILTER
207 bool "(EXPERIMENTAL) Filter HMP migrations by task priority"
210 Enables task priority based HMP migration filter. Any task with
211 a NICE value above the threshold will always be on low-power cpus
212 with less compute capacity.
214 config SCHED_HMP_PRIO_FILTER_VAL
215 int "NICE priority threshold"
217 depends on SCHED_HMP_PRIO_FILTER
219 config HMP_FAST_CPU_MASK
220 string "HMP scheduler fast CPU mask"
223 Leave empty to use device tree information.
224 Specify the cpuids of the fast CPUs in the system as a list string,
225 e.g. cpuid 0+1 should be specified as 0-1.
227 config HMP_SLOW_CPU_MASK
228 string "HMP scheduler slow CPU mask"
231 Leave empty to use device tree information.
232 Specify the cpuids of the slow CPUs in the system as a list string,
233 e.g. cpuid 0+1 should be specified as 0-1.
235 config HMP_VARIABLE_SCALE
236 bool "Allows changing the load tracking scale through sysfs"
239 When turned on, this option exports the thresholds and load average
240 period value for the load tracking patches through sysfs.
241 The values can be modified to change the rate of load accumulation
242 and the thresholds used for HMP migration.
243 The load_avg_period_ms is the time in ms to reach a load average of
244 0.5 for an idle task of 0 load average ratio that start a busy loop.
245 The up_threshold and down_threshold is the value to go to a faster
246 CPU or to go back to a slower cpu.
247 The {up,down}_threshold are devided by 1024 before being compared
249 For examples, with load_avg_period_ms = 128 and up_threshold = 512,
250 a running task with a load of 0 will be migrated to a bigger CPU after
251 128ms, because after 128ms its load_avg_ratio is 0.5 and the real
253 This patch has the same behavior as changing the Y of the load
254 average computation to
255 (1002/1024)^(LOAD_AVG_PERIOD/load_avg_period_ms)
256 but it remove intermadiate overflows in computation.
258 config HMP_FREQUENCY_INVARIANT_SCALE
259 bool "(EXPERIMENTAL) Frequency-Invariant Tracked Load for HMP"
260 depends on HMP_VARIABLE_SCALE && CPU_FREQ
262 Scales the current load contribution in line with the frequency
263 of the CPU that the task was executed on.
264 In this version, we use a simple linear scale derived from the
265 maximum frequency reported by CPUFreq.
266 Restricting tracked load to be scaled by the CPU's frequency
267 represents the consumption of possible compute capacity
268 (rather than consumption of actual instantaneous capacity as
269 normal) and allows the HMP migration's simple threshold
270 migration strategy to interact more predictably with CPUFreq's
271 asynchronous compute capacity changes.
273 config SCHED_HMP_LITTLE_PACKING
274 bool "Small task packing for HMP"
278 Allows the HMP Scheduler to pack small tasks into CPUs in the
280 Controlled by two sysfs files in sys/kernel/hmp.
281 packing_enable: 1 to enable, 0 to disable packing. Default 1.
282 packing_limit: runqueue load ratio where a RQ is considered
283 to be full. Default is NICE_0_LOAD * 9/8.
286 int "Maximum number of CPUs (2-32)"
289 # These have to remain sorted largest to smallest
293 bool "Support for hot-pluggable CPUs"
296 Say Y here to experiment with turning CPUs off and on. CPUs
297 can be controlled through /sys/devices/system/cpu.
299 source kernel/Kconfig.preempt
305 config ARCH_HAS_HOLES_MEMORYMODEL
306 def_bool y if SPARSEMEM
308 config ARCH_SPARSEMEM_ENABLE
310 select SPARSEMEM_VMEMMAP_ENABLE
312 config ARCH_SPARSEMEM_DEFAULT
313 def_bool ARCH_SPARSEMEM_ENABLE
315 config ARCH_SELECT_MEMORY_MODEL
316 def_bool ARCH_SPARSEMEM_ENABLE
318 config HAVE_ARCH_PFN_VALID
319 def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
321 config HW_PERF_EVENTS
322 bool "Enable hardware performance counter support for perf events"
323 depends on PERF_EVENTS
326 Enable hardware performance counter support for perf events. If
327 disabled, perf events will use software events only.
329 config SYS_SUPPORTS_HUGETLBFS
332 config ARCH_WANT_GENERAL_HUGETLB
335 config ARCH_WANT_HUGE_PMD_SHARE
336 def_bool y if !ARM64_64K_PAGES
338 config HAVE_ARCH_TRANSPARENT_HUGEPAGE
343 config FORCE_MAX_ZONEORDER
345 default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)
353 string "Default kernel command string"
356 Provide a set of default command-line options at build time by
357 entering them here. As a minimum, you should specify the the
358 root device (e.g. root=/dev/nfs).
361 prompt "Kernel command line type" if CMDLINE != ""
362 default CMDLINE_FROM_BOOTLOADER
364 config CMDLINE_FROM_BOOTLOADER
365 bool "Use bootloader kernel arguments if available"
367 Uses the command-line options passed by the boot loader. If
368 the boot loader doesn't provide any, the default kernel command
369 string provided in CMDLINE will be used.
371 config CMDLINE_EXTEND
372 bool "Extend bootloader kernel arguments"
374 The command-line arguments provided by the boot loader will be
375 appended to the default kernel command string.
378 bool "Always use the default kernel command string"
380 Always use the default kernel command string, even if the boot
381 loader passes other arguments to the kernel.
382 This is useful if you cannot or don't want to change the
383 command-line options your boot loader passes to the kernel.
386 config BUILD_ARM64_APPENDED_DTB_IMAGE
387 bool "Build a concatenated Image.gz/dtb by default"
390 Enabling this option will cause a concatenated Image.gz and list of
391 DTBs to be built by default (instead of a standalone Image.gz.)
392 The image will built in arch/arm64/boot/Image.gz-dtb
394 config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES
395 string "Default dtb names"
396 depends on BUILD_ARM64_APPENDED_DTB_IMAGE
398 Space separated list of names of dtbs to append when
399 building a concatenated Image.gz-dtb.
403 menu "Userspace binary formats"
405 source "fs/Kconfig.binfmt"
408 bool "Kernel support for 32-bit EL0"
409 depends on !ARM64_64K_PAGES
410 select COMPAT_BINFMT_ELF
412 select OLD_SIGSUSPEND3
413 select COMPAT_OLD_SIGACTION
415 This option enables support for a 32-bit EL0 running under a 64-bit
416 kernel at EL1. AArch32-specific components such as system calls,
417 the user helper functions, VFP support and the ptrace interface are
418 handled appropriately by the kernel.
420 If you want to execute 32-bit userspace applications, say Y.
422 config SYSVIPC_COMPAT
424 depends on COMPAT && SYSVIPC
428 menu "Power management options"
430 source "kernel/power/Kconfig"
432 source "drivers/cpufreq/Kconfig"
433 config ARCH_SUSPEND_POSSIBLE
436 config ARM64_CPU_SUSPEND
441 menu "CPU Power Management"
443 source "drivers/cpuidle/Kconfig"
449 source "drivers/Kconfig"
453 source "arch/arm64/Kconfig.debug"
455 source "security/Kconfig"
457 source "crypto/Kconfig"