| 1 | config ARM64 |
| 2 | def_bool y |
| 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 |
| 9 | select ARM_AMBA |
| 10 | select ARM_ARCH_TIMER |
| 11 | select AUDIT_ARCH_COMPAT_GENERIC |
| 12 | select CLONE_BACKWARDS |
| 13 | select COMMON_CLK |
| 14 | select ARM_GIC |
| 15 | select GENERIC_CLOCKEVENTS |
| 16 | select GENERIC_CLOCKEVENTS_BROADCAST if SMP |
| 17 | select GENERIC_CPU_AUTOPROBE |
| 18 | select GENERIC_IOMAP |
| 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 |
| 27 | select HAVE_ARCH_KGDB |
| 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 |
| 33 | select HAVE_DMA_ATTRS |
| 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 |
| 41 | select HAVE_MEMBLOCK |
| 42 | select HAVE_PERF_EVENTS |
| 43 | select HAVE_SYSCALL_TRACEPOINTS |
| 44 | select IRQ_DOMAIN |
| 45 | select MODULES_USE_ELF_RELA |
| 46 | select NO_BOOTMEM |
| 47 | select OF |
| 48 | select OF_EARLY_FLATTREE |
| 49 | select OF_RESERVED_MEM |
| 50 | select PERF_USE_VMALLOC |
| 51 | select POWER_RESET |
| 52 | select POWER_SUPPLY |
| 53 | select RTC_LIB |
| 54 | select SPARSE_IRQ |
| 55 | select SYSCTL_EXCEPTION_TRACE |
| 56 | help |
| 57 | ARM 64-bit (AArch64) Linux support. |
| 58 | |
| 59 | config ARM_HAS_SG_CHAIN |
| 60 | def_bool y |
| 61 | |
| 62 | config 64BIT |
| 63 | def_bool y |
| 64 | |
| 65 | config ARCH_PHYS_ADDR_T_64BIT |
| 66 | def_bool y |
| 67 | |
| 68 | config MMU |
| 69 | def_bool y |
| 70 | |
| 71 | config NO_IOPORT |
| 72 | def_bool y |
| 73 | |
| 74 | config STACKTRACE_SUPPORT |
| 75 | def_bool y |
| 76 | |
| 77 | config ILLEGAL_POINTER_VALUE |
| 78 | hex |
| 79 | default 0xdead000000000000 |
| 80 | |
| 81 | config LOCKDEP_SUPPORT |
| 82 | def_bool y |
| 83 | |
| 84 | config TRACE_IRQFLAGS_SUPPORT |
| 85 | def_bool y |
| 86 | |
| 87 | config GENERIC_LOCKBREAK |
| 88 | def_bool y |
| 89 | depends on SMP && PREEMPT |
| 90 | |
| 91 | config RWSEM_GENERIC_SPINLOCK |
| 92 | def_bool y |
| 93 | |
| 94 | config ARCH_HAS_CPUFREQ |
| 95 | bool |
| 96 | help |
| 97 | Internal node to signify that the ARCH has CPUFREQ support |
| 98 | and that the relevant menu configurations are displayed for |
| 99 | it. |
| 100 | |
| 101 | config GENERIC_HWEIGHT |
| 102 | def_bool y |
| 103 | |
| 104 | config GENERIC_CSUM |
| 105 | def_bool y |
| 106 | |
| 107 | config GENERIC_CALIBRATE_DELAY |
| 108 | def_bool y |
| 109 | |
| 110 | config ZONE_DMA |
| 111 | def_bool y |
| 112 | |
| 113 | config ARCH_DMA_ADDR_T_64BIT |
| 114 | def_bool y |
| 115 | |
| 116 | config NEED_DMA_MAP_STATE |
| 117 | def_bool y |
| 118 | |
| 119 | config NEED_SG_DMA_LENGTH |
| 120 | def_bool y |
| 121 | |
| 122 | config SWIOTLB |
| 123 | def_bool y |
| 124 | |
| 125 | config IOMMU_HELPER |
| 126 | def_bool SWIOTLB |
| 127 | |
| 128 | config ARM_ERRATA_824069 |
| 129 | bool "ARM errata: Cache line might not be marked as clean after a CleanShared snoop" |
| 130 | depends on SMP |
| 131 | help |
| 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. |
| 139 | |
| 140 | config KERNEL_MODE_NEON |
| 141 | def_bool y |
| 142 | |
| 143 | source "init/Kconfig" |
| 144 | |
| 145 | source "kernel/Kconfig.freezer" |
| 146 | |
| 147 | menu "Platform selection" |
| 148 | |
| 149 | config ARCH_VEXPRESS |
| 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 |
| 155 | help |
| 156 | This enables support for the ARMv8 software model (Versatile |
| 157 | Express). |
| 158 | |
| 159 | config ARCH_MT6735 |
| 160 | bool "MediaTek MT6735" |
| 161 | select GENERIC_TIME |
| 162 | select GENERIC_CLOCKEVENTS |
| 163 | select ARCH_HAS_CPUFREQ |
| 164 | select ARM_AMBA |
| 165 | select CPU_V7 |
| 166 | select HAVE_SMP |
| 167 | select NEED_MACH_MEMORY_H |
| 168 | select IRQ_DOMAIN |
| 169 | select IRQ_DOMAIN_DEBUG |
| 170 | select GENERIC_SCHED_CLOCK |
| 171 | select MTK_SYSTRACKER |
| 172 | select ARMV7_COMPAT |
| 173 | select ARMV7_COMPAT_CPUINFO |
| 174 | help |
| 175 | This enable support for MediaTek MT6735 |
| 176 | |
| 177 | config ARCH_MT6735M |
| 178 | bool "MediaTek MT6735M" |
| 179 | select GENERIC_TIME |
| 180 | select GENERIC_CLOCKEVENTS |
| 181 | select ARCH_HAS_CPUFREQ |
| 182 | select ARM_AMBA |
| 183 | select CPU_V7 |
| 184 | select HAVE_SMP |
| 185 | select NEED_MACH_MEMORY_H |
| 186 | select IRQ_DOMAIN |
| 187 | select IRQ_DOMAIN_DEBUG |
| 188 | select GENERIC_SCHED_CLOCK |
| 189 | select MTK_SYSTRACKER |
| 190 | select ARMV7_COMPAT |
| 191 | select ARMV7_COMPAT_CPUINFO |
| 192 | help |
| 193 | This enable support for MediaTek MT6735M |
| 194 | |
| 195 | config ARCH_MT6753 |
| 196 | bool "MediaTek MT6735M" |
| 197 | select GENERIC_TIME |
| 198 | select GENERIC_CLOCKEVENTS |
| 199 | select ARCH_HAS_CPUFREQ |
| 200 | select ARM_AMBA |
| 201 | select CPU_V7 |
| 202 | select HAVE_SMP |
| 203 | select NEED_MACH_MEMORY_H |
| 204 | select IRQ_DOMAIN |
| 205 | select IRQ_DOMAIN_DEBUG |
| 206 | select GENERIC_SCHED_CLOCK |
| 207 | select MTK_SYSTRACKER |
| 208 | select ARMV7_COMPAT |
| 209 | select ARMV7_COMPAT_CPUINFO |
| 210 | help |
| 211 | This enable support for MediaTek MT6753 |
| 212 | |
| 213 | config ARCH_MT6752 |
| 214 | bool "MediaTek MT6752" |
| 215 | select GENERIC_TIME |
| 216 | select GENERIC_CLOCKEVENTS |
| 217 | select ARCH_HAS_CPUFREQ |
| 218 | select ARM_AMBA |
| 219 | select CPU_V7 |
| 220 | select HAVE_SMP |
| 221 | select NEED_MACH_MEMORY_H |
| 222 | select IRQ_DOMAIN |
| 223 | select IRQ_DOMAIN_DEBUG |
| 224 | select GENERIC_SCHED_CLOCK |
| 225 | select MTK_SYSTRACKER |
| 226 | select MTK_L2C_SHARE |
| 227 | select ARCH_REQUIRE_GPIOLIB |
| 228 | select MTK_ETM |
| 229 | select MTK_EIC |
| 230 | select ARMV7_COMPAT |
| 231 | select ARMV7_COMPAT_CPUINFO |
| 232 | help |
| 233 | This enable support for MediaTek MT6752 |
| 234 | |
| 235 | config ARCH_MT6795 |
| 236 | bool "MediaTek MT6795" |
| 237 | select GENERIC_TIME |
| 238 | select GENERIC_CLOCKEVENTS |
| 239 | select ARCH_HAS_CPUFREQ |
| 240 | select ARM_AMBA |
| 241 | select CPU_V7 |
| 242 | select HAVE_SMP |
| 243 | select NEED_MACH_MEMORY_H |
| 244 | select FIQ_GLUE |
| 245 | select IRQ_DOMAIN |
| 246 | select IRQ_DOMAIN_DEBUG |
| 247 | select GENERIC_SCHED_CLOCK |
| 248 | select ARCH_REQUIRE_GPIOLIB |
| 249 | select MTK_CIRQ |
| 250 | select MTK_CPU_STRESS |
| 251 | select MTK_SYSTRACKER |
| 252 | select MTK_LASTPC |
| 253 | select ARMV7_COMPAT |
| 254 | select ARMV7_COMPAT_CPUINFO |
| 255 | help |
| 256 | This enable support for MediaTek MT6795 |
| 257 | endmenu |
| 258 | |
| 259 | source "drivers/misc/mediatek/mach/Kconfig" |
| 260 | |
| 261 | menu "Bus support" |
| 262 | |
| 263 | config ARM_AMBA |
| 264 | bool |
| 265 | |
| 266 | endmenu |
| 267 | |
| 268 | menu "Kernel Features" |
| 269 | |
| 270 | config ARM64_64K_PAGES |
| 271 | bool "Enable 64KB pages support" |
| 272 | help |
| 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 |
| 276 | is enabled. |
| 277 | |
| 278 | config SMP |
| 279 | bool "Symmetric Multi-Processing" |
| 280 | select USE_GENERIC_SMP_HELPERS |
| 281 | help |
| 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 |
| 288 | here. |
| 289 | |
| 290 | If you don't know what to do here, say N. |
| 291 | |
| 292 | config ARM_CPU_TOPOLOGY |
| 293 | bool "Support CPU topology definition" |
| 294 | depends on SMP |
| 295 | default y |
| 296 | help |
| 297 | Support CPU topology definition, based on configuration |
| 298 | provided by the firmware. |
| 299 | |
| 300 | config SCHED_MC |
| 301 | bool "Multi-core scheduler support" |
| 302 | depends on ARM_CPU_TOPOLOGY |
| 303 | help |
| 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. |
| 307 | |
| 308 | config SCHED_SMT |
| 309 | bool "SMT scheduler support" |
| 310 | depends on ARM_CPU_TOPOLOGY |
| 311 | help |
| 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. |
| 315 | |
| 316 | config DISABLE_CPU_SCHED_DOMAIN_BALANCE |
| 317 | bool "(EXPERIMENTAL) Disable CPU level scheduler load-balancing" |
| 318 | help |
| 319 | Disables scheduler load-balancing at CPU sched domain level. |
| 320 | |
| 321 | config SCHED_HMP |
| 322 | bool "(EXPERIMENTAL) Heterogenous multiprocessor scheduling" |
| 323 | depends on DISABLE_CPU_SCHED_DOMAIN_BALANCE && SCHED_MC && FAIR_GROUP_SCHED && !SCHED_AUTOGROUP |
| 324 | help |
| 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). |
| 332 | |
| 333 | config SCHED_HMP_PRIO_FILTER |
| 334 | bool "(EXPERIMENTAL) Filter HMP migrations by task priority" |
| 335 | depends on SCHED_HMP |
| 336 | help |
| 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. |
| 340 | |
| 341 | config SCHED_HMP_PRIO_FILTER_VAL |
| 342 | int "NICE priority threshold" |
| 343 | default 5 |
| 344 | depends on SCHED_HMP_PRIO_FILTER |
| 345 | |
| 346 | config HMP_FAST_CPU_MASK |
| 347 | string "HMP scheduler fast CPU mask" |
| 348 | depends on SCHED_HMP |
| 349 | help |
| 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. |
| 353 | |
| 354 | config HMP_SLOW_CPU_MASK |
| 355 | string "HMP scheduler slow CPU mask" |
| 356 | depends on SCHED_HMP |
| 357 | help |
| 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. |
| 361 | |
| 362 | config HMP_VARIABLE_SCALE |
| 363 | bool "Allows changing the load tracking scale through sysfs" |
| 364 | depends on SCHED_HMP |
| 365 | help |
| 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 |
| 375 | to the load average. |
| 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 |
| 379 | up_threshold is 0.5. |
| 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. |
| 384 | |
| 385 | config MET_SCHED_HMP |
| 386 | bool "(EXPERIMENTAL) MET SCHED HMP Info" |
| 387 | depends on SCHED_HMP_ENHANCEMENT |
| 388 | depends on HMP_TRACER |
| 389 | help |
| 390 | MET SCHED HMP Info |
| 391 | |
| 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 |
| 396 | help |
| 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. |
| 407 | |
| 408 | config SCHED_HMP_ENHANCEMENT |
| 409 | bool "(EXPERIMENTAL) HMP Ennhancement" |
| 410 | depends on SCHED_HMP |
| 411 | help |
| 412 | HMP Ennhancement |
| 413 | |
| 414 | config HMP_TRACER |
| 415 | bool "(EXPERIMENTAL) Profile HMP scheduler" |
| 416 | depends on SCHED_HMP_ENHANCEMENT |
| 417 | help |
| 418 | Profile HMP scheduler |
| 419 | |
| 420 | config HMP_DYNAMIC_THRESHOLD |
| 421 | bool "(EXPERIMENTAL) Dynamically adjust task migration threshold" |
| 422 | depends on SCHED_HMP_ENHANCEMENT |
| 423 | help |
| 424 | Dynamically adjust task migration threshold according to current system load |
| 425 | |
| 426 | config HMP_GLOBAL_BALANCE |
| 427 | bool "(EXPERIMENTAL) Enhance HMP global load balance" |
| 428 | depends on SCHED_HMP_ENHANCEMENT |
| 429 | help |
| 430 | Enhance HMP global load balance |
| 431 | |
| 432 | config HMP_TASK_ASSIGNMENT |
| 433 | bool "(EXPERIMENTAL) Enhance HMP task assignment" |
| 434 | depends on SCHED_HMP_ENHANCEMENT |
| 435 | help |
| 436 | Enhance HMP task assignment |
| 437 | |
| 438 | config HMP_DISCARD_CFS_SELECTION_RESULT |
| 439 | bool "(EXPERIMENTAL) Discard CFS runqueue selection result" |
| 440 | depends on SCHED_HMP_ENHANCEMENT && HMP_TASK_ASSIGNMENT |
| 441 | help |
| 442 | Discard CFS runqueue selection result even if only one cluster exists |
| 443 | |
| 444 | config HMP_PACK_SMALL_TASK |
| 445 | bool "(EXPERIMENTAL) Packing Small Tasks" |
| 446 | depends on SCHED_HMP_ENHANCEMENT |
| 447 | help |
| 448 | This option enables Packing Small Tasks |
| 449 | |
| 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 |
| 453 | help |
| 454 | This option enables Packing Small Tasks Buddy Information Log |
| 455 | |
| 456 | config HMP_LAZY_BALANCE |
| 457 | bool "(EXPERIMENTAL) Lazy Balance" |
| 458 | depends on SCHED_HMP_ENHANCEMENT && HMP_PACK_SMALL_TASK |
| 459 | help |
| 460 | This option enables Lazy Balance |
| 461 | |
| 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 |
| 465 | help |
| 466 | Power-aware scheduler for b.L MP controller and status interface |
| 467 | |
| 468 | config HEVTASK_INTERFACE |
| 469 | bool "task status interface" |
| 470 | help |
| 471 | The option provide an interface to show task status |
| 472 | |
| 473 | config ARCH_SCALE_INVARIANT_CPU_CAPACITY |
| 474 | bool "(EXPERIMENTAL) Scale-Invariant CPU Compute Capacity Recording" |
| 475 | depends on CPU_FREQ |
| 476 | help |
| 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. |
| 487 | |
| 488 | config NR_CPUS |
| 489 | int "Maximum number of CPUs (2-32)" |
| 490 | range 2 32 |
| 491 | depends on SMP |
| 492 | default "4" |
| 493 | |
| 494 | config SWP_EMULATE |
| 495 | bool "Emulate SWP/SWPB instructions" |
| 496 | help |
| 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 |
| 503 | for statistics. |
| 504 | |
| 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 |
| 509 | application. |
| 510 | |
| 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. |
| 516 | |
| 517 | If unsure, say Y. |
| 518 | |
| 519 | config HOTPLUG_CPU |
| 520 | bool "Support for hot-pluggable CPUs" |
| 521 | depends on SMP |
| 522 | help |
| 523 | Say Y here to experiment with turning CPUs off and on. CPUs |
| 524 | can be controlled through /sys/devices/system/cpu. |
| 525 | |
| 526 | source kernel/Kconfig.preempt |
| 527 | |
| 528 | config HZ |
| 529 | int |
| 530 | default 100 |
| 531 | |
| 532 | config ARCH_HAS_HOLES_MEMORYMODEL |
| 533 | def_bool y if SPARSEMEM |
| 534 | |
| 535 | config ARCH_SPARSEMEM_ENABLE |
| 536 | def_bool y |
| 537 | select SPARSEMEM_VMEMMAP_ENABLE |
| 538 | |
| 539 | config ARCH_SPARSEMEM_DEFAULT |
| 540 | def_bool ARCH_SPARSEMEM_ENABLE |
| 541 | |
| 542 | config ARCH_SELECT_MEMORY_MODEL |
| 543 | def_bool ARCH_SPARSEMEM_ENABLE |
| 544 | |
| 545 | config HAVE_ARCH_PFN_VALID |
| 546 | def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM |
| 547 | |
| 548 | config HW_PERF_EVENTS |
| 549 | bool "Enable hardware performance counter support for perf events" |
| 550 | depends on PERF_EVENTS |
| 551 | default y |
| 552 | help |
| 553 | Enable hardware performance counter support for perf events. If |
| 554 | disabled, perf events will use software events only. |
| 555 | |
| 556 | config ARMV7_COMPAT |
| 557 | bool "Kernel support for ARMv7 applications" |
| 558 | depends on COMPAT |
| 559 | select SWP_EMULATE |
| 560 | help |
| 561 | This option enables features that allow that ran on an ARMv7 or older |
| 562 | processor to continue functioning. |
| 563 | |
| 564 | If you want to execute ARMv7 applications, say Y |
| 565 | |
| 566 | config ARMV7_COMPAT_CPUINFO |
| 567 | bool "Report backwards compatible cpu features in /proc/cpuinfo" |
| 568 | depends on ARMV7_COMPAT |
| 569 | default y |
| 570 | help |
| 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 |
| 573 | processor. |
| 574 | |
| 575 | If you want to execute ARMv7 applications, say Y |
| 576 | |
| 577 | source "mm/Kconfig" |
| 578 | |
| 579 | config SECCOMP |
| 580 | bool "Enable seccomp to safely compute untrusted bytecode" |
| 581 | ---help--- |
| 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. |
| 591 | |
| 592 | |
| 593 | endmenu |
| 594 | |
| 595 | menu "Boot options" |
| 596 | |
| 597 | config CMDLINE |
| 598 | string "Default kernel command string" |
| 599 | default "" |
| 600 | help |
| 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). |
| 604 | |
| 605 | choice |
| 606 | prompt "Kernel command line type" if CMDLINE != "" |
| 607 | default CMDLINE_FROM_BOOTLOADER |
| 608 | |
| 609 | config CMDLINE_FROM_BOOTLOADER |
| 610 | bool "Use bootloader kernel arguments if available" |
| 611 | help |
| 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. |
| 615 | |
| 616 | config CMDLINE_EXTEND |
| 617 | bool "Extend bootloader kernel arguments" |
| 618 | help |
| 619 | The command-line arguments provided by the boot loader will be |
| 620 | appended to the default kernel command string. |
| 621 | |
| 622 | config CMDLINE_FORCE |
| 623 | bool "Always use the default kernel command string" |
| 624 | help |
| 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. |
| 629 | endchoice |
| 630 | |
| 631 | config BUILD_ARM64_APPENDED_DTB_IMAGE |
| 632 | bool "Build a concatenated Image.gz/dtb by default" |
| 633 | depends on OF |
| 634 | help |
| 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 |
| 638 | |
| 639 | config BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES |
| 640 | string "Default dtb names" |
| 641 | depends on BUILD_ARM64_APPENDED_DTB_IMAGE |
| 642 | help |
| 643 | Space separated list of names of dtbs to append when |
| 644 | building a concatenated Image.gz-dtb. |
| 645 | |
| 646 | endmenu |
| 647 | |
| 648 | menu "CPU Power Management" |
| 649 | |
| 650 | if ARCH_HAS_CPUFREQ |
| 651 | source "drivers/cpufreq/Kconfig" |
| 652 | endif |
| 653 | |
| 654 | endmenu |
| 655 | |
| 656 | menu "Userspace binary formats" |
| 657 | |
| 658 | source "fs/Kconfig.binfmt" |
| 659 | |
| 660 | config COMPAT |
| 661 | bool "Kernel support for 32-bit EL0" |
| 662 | depends on !ARM64_64K_PAGES |
| 663 | select COMPAT_BINFMT_ELF |
| 664 | select HAVE_UID16 |
| 665 | select OLD_SIGSUSPEND3 |
| 666 | select COMPAT_OLD_SIGACTION |
| 667 | help |
| 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. |
| 672 | |
| 673 | If you want to execute 32-bit userspace applications, say Y. |
| 674 | |
| 675 | config SYSVIPC_COMPAT |
| 676 | def_bool y |
| 677 | depends on COMPAT && SYSVIPC |
| 678 | |
| 679 | endmenu |
| 680 | |
| 681 | menu "Power management options" |
| 682 | |
| 683 | source "kernel/power/Kconfig" |
| 684 | |
| 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 |
| 689 | def_bool y |
| 690 | |
| 691 | config ARM64_CPU_SUSPEND |
| 692 | def_bool PM_SLEEP |
| 693 | |
| 694 | config ARCH_HIBERNATION_POSSIBLE |
| 695 | bool |
| 696 | depends on MMU |
| 697 | default y if ARCH_SUSPEND_POSSIBLE |
| 698 | |
| 699 | endmenu |
| 700 | |
| 701 | source "net/Kconfig" |
| 702 | |
| 703 | source "drivers/Kconfig" |
| 704 | |
| 705 | source "fs/Kconfig" |
| 706 | |
| 707 | source "arch/arm64/Kconfig.debug" |
| 708 | |
| 709 | source "security/Kconfig" |
| 710 | |
| 711 | source "crypto/Kconfig" |
| 712 | if CRYPTO |
| 713 | source "arch/arm64/crypto/Kconfig" |
| 714 | endif |
| 715 | |
| 716 | source "lib/Kconfig" |
| 717 | |