drm/rockchip: add loader protect ops to drm connector
[firefly-linux-kernel-4.4.55.git] / init / Kconfig
1 config ARCH
2         string
3         option env="ARCH"
4
5 config KERNELVERSION
6         string
7         option env="KERNELVERSION"
8
9 config DEFCONFIG_LIST
10         string
11         depends on !UML
12         option defconfig_list
13         default "/lib/modules/$UNAME_RELEASE/.config"
14         default "/etc/kernel-config"
15         default "/boot/config-$UNAME_RELEASE"
16         default "$ARCH_DEFCONFIG"
17         default "arch/$ARCH/defconfig"
18
19 config CONSTRUCTORS
20         bool
21         depends on !UML
22
23 config IRQ_WORK
24         bool
25
26 config BUILDTIME_EXTABLE_SORT
27         bool
28
29 menu "General setup"
30
31 config BROKEN
32         bool
33
34 config BROKEN_ON_SMP
35         bool
36         depends on BROKEN || !SMP
37         default y
38
39 config INIT_ENV_ARG_LIMIT
40         int
41         default 32 if !UML
42         default 128 if UML
43         help
44           Maximum of each of the number of arguments and environment
45           variables passed to init from the kernel command line.
46
47
48 config CROSS_COMPILE
49         string "Cross-compiler tool prefix"
50         help
51           Same as running 'make CROSS_COMPILE=prefix-' but stored for
52           default make runs in this kernel build directory.  You don't
53           need to set this unless you want the configured kernel build
54           directory to select the cross-compiler automatically.
55
56 config COMPILE_TEST
57         bool "Compile also drivers which will not load"
58         default n
59         help
60           Some drivers can be compiled on a different platform than they are
61           intended to be run on. Despite they cannot be loaded there (or even
62           when they load they cannot be used due to missing HW support),
63           developers still, opposing to distributors, might want to build such
64           drivers to compile-test them.
65
66           If you are a developer and want to build everything available, say Y
67           here. If you are a user/distributor, say N here to exclude useless
68           drivers to be distributed.
69
70 config LOCALVERSION
71         string "Local version - append to kernel release"
72         help
73           Append an extra string to the end of your kernel version.
74           This will show up when you type uname, for example.
75           The string you set here will be appended after the contents of
76           any files with a filename matching localversion* in your
77           object and source tree, in that order.  Your total string can
78           be a maximum of 64 characters.
79
80 config LOCALVERSION_AUTO
81         bool "Automatically append version information to the version string"
82         default y
83         help
84           This will try to automatically determine if the current tree is a
85           release tree by looking for git tags that belong to the current
86           top of tree revision.
87
88           A string of the format -gxxxxxxxx will be added to the localversion
89           if a git-based tree is found.  The string generated by this will be
90           appended after any matching localversion* files, and after the value
91           set in CONFIG_LOCALVERSION.
92
93           (The actual string used here is the first eight characters produced
94           by running the command:
95
96             $ git rev-parse --verify HEAD
97
98           which is done within the script "scripts/setlocalversion".)
99
100 config HAVE_KERNEL_GZIP
101         bool
102
103 config HAVE_KERNEL_BZIP2
104         bool
105
106 config HAVE_KERNEL_LZMA
107         bool
108
109 config HAVE_KERNEL_XZ
110         bool
111
112 config HAVE_KERNEL_LZO
113         bool
114
115 config HAVE_KERNEL_LZ4
116         bool
117
118 choice
119         prompt "Kernel compression mode"
120         default KERNEL_GZIP
121         depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4
122         help
123           The linux kernel is a kind of self-extracting executable.
124           Several compression algorithms are available, which differ
125           in efficiency, compression and decompression speed.
126           Compression speed is only relevant when building a kernel.
127           Decompression speed is relevant at each boot.
128
129           If you have any problems with bzip2 or lzma compressed
130           kernels, mail me (Alain Knaff) <alain@knaff.lu>. (An older
131           version of this functionality (bzip2 only), for 2.4, was
132           supplied by Christian Ludwig)
133
134           High compression options are mostly useful for users, who
135           are low on disk space (embedded systems), but for whom ram
136           size matters less.
137
138           If in doubt, select 'gzip'
139
140 config KERNEL_GZIP
141         bool "Gzip"
142         depends on HAVE_KERNEL_GZIP
143         help
144           The old and tried gzip compression. It provides a good balance
145           between compression ratio and decompression speed.
146
147 config KERNEL_BZIP2
148         bool "Bzip2"
149         depends on HAVE_KERNEL_BZIP2
150         help
151           Its compression ratio and speed is intermediate.
152           Decompression speed is slowest among the choices.  The kernel
153           size is about 10% smaller with bzip2, in comparison to gzip.
154           Bzip2 uses a large amount of memory. For modern kernels you
155           will need at least 8MB RAM or more for booting.
156
157 config KERNEL_LZMA
158         bool "LZMA"
159         depends on HAVE_KERNEL_LZMA
160         help
161           This compression algorithm's ratio is best.  Decompression speed
162           is between gzip and bzip2.  Compression is slowest.
163           The kernel size is about 33% smaller with LZMA in comparison to gzip.
164
165 config KERNEL_XZ
166         bool "XZ"
167         depends on HAVE_KERNEL_XZ
168         help
169           XZ uses the LZMA2 algorithm and instruction set specific
170           BCJ filters which can improve compression ratio of executable
171           code. The size of the kernel is about 30% smaller with XZ in
172           comparison to gzip. On architectures for which there is a BCJ
173           filter (i386, x86_64, ARM, IA-64, PowerPC, and SPARC), XZ
174           will create a few percent smaller kernel than plain LZMA.
175
176           The speed is about the same as with LZMA: The decompression
177           speed of XZ is better than that of bzip2 but worse than gzip
178           and LZO. Compression is slow.
179
180 config KERNEL_LZO
181         bool "LZO"
182         depends on HAVE_KERNEL_LZO
183         help
184           Its compression ratio is the poorest among the choices. The kernel
185           size is about 10% bigger than gzip; however its speed
186           (both compression and decompression) is the fastest.
187
188 config KERNEL_LZ4
189         bool "LZ4"
190         depends on HAVE_KERNEL_LZ4
191         help
192           LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.
193           A preliminary version of LZ4 de/compression tool is available at
194           <https://code.google.com/p/lz4/>.
195
196           Its compression ratio is worse than LZO. The size of the kernel
197           is about 8% bigger than LZO. But the decompression speed is
198           faster than LZO.
199
200 endchoice
201
202 config DEFAULT_HOSTNAME
203         string "Default hostname"
204         default "(none)"
205         help
206           This option determines the default system hostname before userspace
207           calls sethostname(2). The kernel traditionally uses "(none)" here,
208           but you may wish to use a different default here to make a minimal
209           system more usable with less configuration.
210
211 config SWAP
212         bool "Support for paging of anonymous memory (swap)"
213         depends on MMU && BLOCK
214         default y
215         help
216           This option allows you to choose whether you want to have support
217           for so called swap devices or swap files in your kernel that are
218           used to provide more virtual memory than the actual RAM present
219           in your computer.  If unsure say Y.
220
221 config SYSVIPC
222         bool "System V IPC"
223         ---help---
224           Inter Process Communication is a suite of library functions and
225           system calls which let processes (running programs) synchronize and
226           exchange information. It is generally considered to be a good thing,
227           and some programs won't run unless you say Y here. In particular, if
228           you want to run the DOS emulator dosemu under Linux (read the
229           DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
230           you'll need to say Y here.
231
232           You can find documentation about IPC with "info ipc" and also in
233           section 6.4 of the Linux Programmer's Guide, available from
234           <http://www.tldp.org/guides.html>.
235
236 config SYSVIPC_SYSCTL
237         bool
238         depends on SYSVIPC
239         depends on SYSCTL
240         default y
241
242 config POSIX_MQUEUE
243         bool "POSIX Message Queues"
244         depends on NET
245         ---help---
246           POSIX variant of message queues is a part of IPC. In POSIX message
247           queues every message has a priority which decides about succession
248           of receiving it by a process. If you want to compile and run
249           programs written e.g. for Solaris with use of its POSIX message
250           queues (functions mq_*) say Y here.
251
252           POSIX message queues are visible as a filesystem called 'mqueue'
253           and can be mounted somewhere if you want to do filesystem
254           operations on message queues.
255
256           If unsure, say Y.
257
258 config POSIX_MQUEUE_SYSCTL
259         bool
260         depends on POSIX_MQUEUE
261         depends on SYSCTL
262         default y
263
264 config CROSS_MEMORY_ATTACH
265         bool "Enable process_vm_readv/writev syscalls"
266         depends on MMU
267         default y
268         help
269           Enabling this option adds the system calls process_vm_readv and
270           process_vm_writev which allow a process with the correct privileges
271           to directly read from or write to another process' address space.
272           See the man page for more details.
273
274 config FHANDLE
275         bool "open by fhandle syscalls"
276         select EXPORTFS
277         help
278           If you say Y here, a user level program will be able to map
279           file names to handle and then later use the handle for
280           different file system operations. This is useful in implementing
281           userspace file servers, which now track files using handles instead
282           of names. The handle would remain the same even if file names
283           get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
284           syscalls.
285
286 config USELIB
287         bool "uselib syscall"
288         default y
289         help
290           This option enables the uselib syscall, a system call used in the
291           dynamic linker from libc5 and earlier.  glibc does not use this
292           system call.  If you intend to run programs built on libc5 or
293           earlier, you may need to enable this syscall.  Current systems
294           running glibc can safely disable this.
295
296 config AUDIT
297         bool "Auditing support"
298         depends on NET
299         help
300           Enable auditing infrastructure that can be used with another
301           kernel subsystem, such as SELinux (which requires this for
302           logging of avc messages output).  Does not do system-call
303           auditing without CONFIG_AUDITSYSCALL.
304
305 config HAVE_ARCH_AUDITSYSCALL
306         bool
307
308 config AUDITSYSCALL
309         bool "Enable system-call auditing support"
310         depends on AUDIT && HAVE_ARCH_AUDITSYSCALL
311         default y if SECURITY_SELINUX
312         help
313           Enable low-overhead system-call auditing infrastructure that
314           can be used independently or with another kernel subsystem,
315           such as SELinux.
316
317 config AUDIT_WATCH
318         def_bool y
319         depends on AUDITSYSCALL
320         select FSNOTIFY
321
322 config AUDIT_TREE
323         def_bool y
324         depends on AUDITSYSCALL
325         select FSNOTIFY
326
327 source "kernel/irq/Kconfig"
328 source "kernel/time/Kconfig"
329
330 menu "CPU/Task time and stats accounting"
331
332 config VIRT_CPU_ACCOUNTING
333         bool
334
335 choice
336         prompt "Cputime accounting"
337         default TICK_CPU_ACCOUNTING if !PPC64
338         default VIRT_CPU_ACCOUNTING_NATIVE if PPC64
339
340 # Kind of a stub config for the pure tick based cputime accounting
341 config TICK_CPU_ACCOUNTING
342         bool "Simple tick based cputime accounting"
343         depends on !S390 && !NO_HZ_FULL
344         help
345           This is the basic tick based cputime accounting that maintains
346           statistics about user, system and idle time spent on per jiffies
347           granularity.
348
349           If unsure, say Y.
350
351 config VIRT_CPU_ACCOUNTING_NATIVE
352         bool "Deterministic task and CPU time accounting"
353         depends on HAVE_VIRT_CPU_ACCOUNTING && !NO_HZ_FULL
354         select VIRT_CPU_ACCOUNTING
355         help
356           Select this option to enable more accurate task and CPU time
357           accounting.  This is done by reading a CPU counter on each
358           kernel entry and exit and on transitions within the kernel
359           between system, softirq and hardirq state, so there is a
360           small performance impact.  In the case of s390 or IBM POWER > 5,
361           this also enables accounting of stolen time on logically-partitioned
362           systems.
363
364 config VIRT_CPU_ACCOUNTING_GEN
365         bool "Full dynticks CPU time accounting"
366         depends on HAVE_CONTEXT_TRACKING
367         depends on HAVE_VIRT_CPU_ACCOUNTING_GEN
368         select VIRT_CPU_ACCOUNTING
369         select CONTEXT_TRACKING
370         help
371           Select this option to enable task and CPU time accounting on full
372           dynticks systems. This accounting is implemented by watching every
373           kernel-user boundaries using the context tracking subsystem.
374           The accounting is thus performed at the expense of some significant
375           overhead.
376
377           For now this is only useful if you are working on the full
378           dynticks subsystem development.
379
380           If unsure, say N.
381
382 config IRQ_TIME_ACCOUNTING
383         bool "Fine granularity task level IRQ time accounting"
384         depends on HAVE_IRQ_TIME_ACCOUNTING && !NO_HZ_FULL
385         help
386           Select this option to enable fine granularity task irq time
387           accounting. This is done by reading a timestamp on each
388           transitions between softirq and hardirq state, so there can be a
389           small performance impact.
390
391           If in doubt, say N here.
392
393 endchoice
394
395 config SCHED_WALT
396         bool "Support window based load tracking"
397         depends on SMP
398         help
399         This feature will allow the scheduler to maintain a tunable window
400         based set of metrics for tasks and runqueues. These metrics can be
401         used to guide task placement as well as task frequency requirements
402         for cpufreq governors.
403
404 config BSD_PROCESS_ACCT
405         bool "BSD Process Accounting"
406         depends on MULTIUSER
407         help
408           If you say Y here, a user level program will be able to instruct the
409           kernel (via a special system call) to write process accounting
410           information to a file: whenever a process exits, information about
411           that process will be appended to the file by the kernel.  The
412           information includes things such as creation time, owning user,
413           command name, memory usage, controlling terminal etc. (the complete
414           list is in the struct acct in <file:include/linux/acct.h>).  It is
415           up to the user level program to do useful things with this
416           information.  This is generally a good idea, so say Y.
417
418 config BSD_PROCESS_ACCT_V3
419         bool "BSD Process Accounting version 3 file format"
420         depends on BSD_PROCESS_ACCT
421         default n
422         help
423           If you say Y here, the process accounting information is written
424           in a new file format that also logs the process IDs of each
425           process and it's parent. Note that this file format is incompatible
426           with previous v0/v1/v2 file formats, so you will need updated tools
427           for processing it. A preliminary version of these tools is available
428           at <http://www.gnu.org/software/acct/>.
429
430 config TASKSTATS
431         bool "Export task/process statistics through netlink"
432         depends on NET
433         depends on MULTIUSER
434         default n
435         help
436           Export selected statistics for tasks/processes through the
437           generic netlink interface. Unlike BSD process accounting, the
438           statistics are available during the lifetime of tasks/processes as
439           responses to commands. Like BSD accounting, they are sent to user
440           space on task exit.
441
442           Say N if unsure.
443
444 config TASK_DELAY_ACCT
445         bool "Enable per-task delay accounting"
446         depends on TASKSTATS
447         select SCHED_INFO
448         help
449           Collect information on time spent by a task waiting for system
450           resources like cpu, synchronous block I/O completion and swapping
451           in pages. Such statistics can help in setting a task's priorities
452           relative to other tasks for cpu, io, rss limits etc.
453
454           Say N if unsure.
455
456 config TASK_XACCT
457         bool "Enable extended accounting over taskstats"
458         depends on TASKSTATS
459         help
460           Collect extended task accounting data and send the data
461           to userland for processing over the taskstats interface.
462
463           Say N if unsure.
464
465 config TASK_IO_ACCOUNTING
466         bool "Enable per-task storage I/O accounting"
467         depends on TASK_XACCT
468         help
469           Collect information on the number of bytes of storage I/O which this
470           task has caused.
471
472           Say N if unsure.
473
474 endmenu # "CPU/Task time and stats accounting"
475
476 menu "RCU Subsystem"
477
478 config TREE_RCU
479         bool
480         default y if !PREEMPT && SMP
481         help
482           This option selects the RCU implementation that is
483           designed for very large SMP system with hundreds or
484           thousands of CPUs.  It also scales down nicely to
485           smaller systems.
486
487 config PREEMPT_RCU
488         bool
489         default y if PREEMPT
490         help
491           This option selects the RCU implementation that is
492           designed for very large SMP systems with hundreds or
493           thousands of CPUs, but for which real-time response
494           is also required.  It also scales down nicely to
495           smaller systems.
496
497           Select this option if you are unsure.
498
499 config TINY_RCU
500         bool
501         default y if !PREEMPT && !SMP
502         help
503           This option selects the RCU implementation that is
504           designed for UP systems from which real-time response
505           is not required.  This option greatly reduces the
506           memory footprint of RCU.
507
508 config RCU_EXPERT
509         bool "Make expert-level adjustments to RCU configuration"
510         default n
511         help
512           This option needs to be enabled if you wish to make
513           expert-level adjustments to RCU configuration.  By default,
514           no such adjustments can be made, which has the often-beneficial
515           side-effect of preventing "make oldconfig" from asking you all
516           sorts of detailed questions about how you would like numerous
517           obscure RCU options to be set up.
518
519           Say Y if you need to make expert-level adjustments to RCU.
520
521           Say N if you are unsure.
522
523 config SRCU
524         bool
525         help
526           This option selects the sleepable version of RCU. This version
527           permits arbitrary sleeping or blocking within RCU read-side critical
528           sections.
529
530 config TASKS_RCU
531         bool
532         default n
533         select SRCU
534         help
535           This option enables a task-based RCU implementation that uses
536           only voluntary context switch (not preemption!), idle, and
537           user-mode execution as quiescent states.
538
539 config RCU_STALL_COMMON
540         def_bool ( TREE_RCU || PREEMPT_RCU || RCU_TRACE )
541         help
542           This option enables RCU CPU stall code that is common between
543           the TINY and TREE variants of RCU.  The purpose is to allow
544           the tiny variants to disable RCU CPU stall warnings, while
545           making these warnings mandatory for the tree variants.
546
547 config CONTEXT_TRACKING
548        bool
549
550 config CONTEXT_TRACKING_FORCE
551         bool "Force context tracking"
552         depends on CONTEXT_TRACKING
553         default y if !NO_HZ_FULL
554         help
555           The major pre-requirement for full dynticks to work is to
556           support the context tracking subsystem. But there are also
557           other dependencies to provide in order to make the full
558           dynticks working.
559
560           This option stands for testing when an arch implements the
561           context tracking backend but doesn't yet fullfill all the
562           requirements to make the full dynticks feature working.
563           Without the full dynticks, there is no way to test the support
564           for context tracking and the subsystems that rely on it: RCU
565           userspace extended quiescent state and tickless cputime
566           accounting. This option copes with the absence of the full
567           dynticks subsystem by forcing the context tracking on all
568           CPUs in the system.
569
570           Say Y only if you're working on the development of an
571           architecture backend for the context tracking.
572
573           Say N otherwise, this option brings an overhead that you
574           don't want in production.
575
576
577 config RCU_FANOUT
578         int "Tree-based hierarchical RCU fanout value"
579         range 2 64 if 64BIT
580         range 2 32 if !64BIT
581         depends on (TREE_RCU || PREEMPT_RCU) && RCU_EXPERT
582         default 64 if 64BIT
583         default 32 if !64BIT
584         help
585           This option controls the fanout of hierarchical implementations
586           of RCU, allowing RCU to work efficiently on machines with
587           large numbers of CPUs.  This value must be at least the fourth
588           root of NR_CPUS, which allows NR_CPUS to be insanely large.
589           The default value of RCU_FANOUT should be used for production
590           systems, but if you are stress-testing the RCU implementation
591           itself, small RCU_FANOUT values allow you to test large-system
592           code paths on small(er) systems.
593
594           Select a specific number if testing RCU itself.
595           Take the default if unsure.
596
597 config RCU_FANOUT_LEAF
598         int "Tree-based hierarchical RCU leaf-level fanout value"
599         range 2 64 if 64BIT
600         range 2 32 if !64BIT
601         depends on (TREE_RCU || PREEMPT_RCU) && RCU_EXPERT
602         default 16
603         help
604           This option controls the leaf-level fanout of hierarchical
605           implementations of RCU, and allows trading off cache misses
606           against lock contention.  Systems that synchronize their
607           scheduling-clock interrupts for energy-efficiency reasons will
608           want the default because the smaller leaf-level fanout keeps
609           lock contention levels acceptably low.  Very large systems
610           (hundreds or thousands of CPUs) will instead want to set this
611           value to the maximum value possible in order to reduce the
612           number of cache misses incurred during RCU's grace-period
613           initialization.  These systems tend to run CPU-bound, and thus
614           are not helped by synchronized interrupts, and thus tend to
615           skew them, which reduces lock contention enough that large
616           leaf-level fanouts work well.
617
618           Select a specific number if testing RCU itself.
619
620           Select the maximum permissible value for large systems.
621
622           Take the default if unsure.
623
624 config RCU_FAST_NO_HZ
625         bool "Accelerate last non-dyntick-idle CPU's grace periods"
626         depends on NO_HZ_COMMON && SMP && RCU_EXPERT
627         default n
628         help
629           This option permits CPUs to enter dynticks-idle state even if
630           they have RCU callbacks queued, and prevents RCU from waking
631           these CPUs up more than roughly once every four jiffies (by
632           default, you can adjust this using the rcutree.rcu_idle_gp_delay
633           parameter), thus improving energy efficiency.  On the other
634           hand, this option increases the duration of RCU grace periods,
635           for example, slowing down synchronize_rcu().
636
637           Say Y if energy efficiency is critically important, and you
638                 don't care about increased grace-period durations.
639
640           Say N if you are unsure.
641
642 config TREE_RCU_TRACE
643         def_bool RCU_TRACE && ( TREE_RCU || PREEMPT_RCU )
644         select DEBUG_FS
645         help
646           This option provides tracing for the TREE_RCU and
647           PREEMPT_RCU implementations, permitting Makefile to
648           trivially select kernel/rcutree_trace.c.
649
650 config RCU_BOOST
651         bool "Enable RCU priority boosting"
652         depends on RT_MUTEXES && PREEMPT_RCU && RCU_EXPERT
653         default n
654         help
655           This option boosts the priority of preempted RCU readers that
656           block the current preemptible RCU grace period for too long.
657           This option also prevents heavy loads from blocking RCU
658           callback invocation for all flavors of RCU.
659
660           Say Y here if you are working with real-time apps or heavy loads
661           Say N here if you are unsure.
662
663 config RCU_KTHREAD_PRIO
664         int "Real-time priority to use for RCU worker threads"
665         range 1 99 if RCU_BOOST
666         range 0 99 if !RCU_BOOST
667         default 1 if RCU_BOOST
668         default 0 if !RCU_BOOST
669         depends on RCU_EXPERT
670         help
671           This option specifies the SCHED_FIFO priority value that will be
672           assigned to the rcuc/n and rcub/n threads and is also the value
673           used for RCU_BOOST (if enabled). If you are working with a
674           real-time application that has one or more CPU-bound threads
675           running at a real-time priority level, you should set
676           RCU_KTHREAD_PRIO to a priority higher than the highest-priority
677           real-time CPU-bound application thread.  The default RCU_KTHREAD_PRIO
678           value of 1 is appropriate in the common case, which is real-time
679           applications that do not have any CPU-bound threads.
680
681           Some real-time applications might not have a single real-time
682           thread that saturates a given CPU, but instead might have
683           multiple real-time threads that, taken together, fully utilize
684           that CPU.  In this case, you should set RCU_KTHREAD_PRIO to
685           a priority higher than the lowest-priority thread that is
686           conspiring to prevent the CPU from running any non-real-time
687           tasks.  For example, if one thread at priority 10 and another
688           thread at priority 5 are between themselves fully consuming
689           the CPU time on a given CPU, then RCU_KTHREAD_PRIO should be
690           set to priority 6 or higher.
691
692           Specify the real-time priority, or take the default if unsure.
693
694 config RCU_BOOST_DELAY
695         int "Milliseconds to delay boosting after RCU grace-period start"
696         range 0 3000
697         depends on RCU_BOOST
698         default 500
699         help
700           This option specifies the time to wait after the beginning of
701           a given grace period before priority-boosting preempted RCU
702           readers blocking that grace period.  Note that any RCU reader
703           blocking an expedited RCU grace period is boosted immediately.
704
705           Accept the default if unsure.
706
707 config RCU_NOCB_CPU
708         bool "Offload RCU callback processing from boot-selected CPUs"
709         depends on TREE_RCU || PREEMPT_RCU
710         depends on RCU_EXPERT || NO_HZ_FULL
711         default n
712         help
713           Use this option to reduce OS jitter for aggressive HPC or
714           real-time workloads.  It can also be used to offload RCU
715           callback invocation to energy-efficient CPUs in battery-powered
716           asymmetric multiprocessors.
717
718           This option offloads callback invocation from the set of
719           CPUs specified at boot time by the rcu_nocbs parameter.
720           For each such CPU, a kthread ("rcuox/N") will be created to
721           invoke callbacks, where the "N" is the CPU being offloaded,
722           and where the "x" is "b" for RCU-bh, "p" for RCU-preempt, and
723           "s" for RCU-sched.  Nothing prevents this kthread from running
724           on the specified CPUs, but (1) the kthreads may be preempted
725           between each callback, and (2) affinity or cgroups can be used
726           to force the kthreads to run on whatever set of CPUs is desired.
727
728           Say Y here if you want to help to debug reduced OS jitter.
729           Say N here if you are unsure.
730
731 choice
732         prompt "Build-forced no-CBs CPUs"
733         default RCU_NOCB_CPU_NONE
734         depends on RCU_NOCB_CPU
735         help
736           This option allows no-CBs CPUs (whose RCU callbacks are invoked
737           from kthreads rather than from softirq context) to be specified
738           at build time.  Additional no-CBs CPUs may be specified by
739           the rcu_nocbs= boot parameter.
740
741 config RCU_NOCB_CPU_NONE
742         bool "No build_forced no-CBs CPUs"
743         help
744           This option does not force any of the CPUs to be no-CBs CPUs.
745           Only CPUs designated by the rcu_nocbs= boot parameter will be
746           no-CBs CPUs, whose RCU callbacks will be invoked by per-CPU
747           kthreads whose names begin with "rcuo".  All other CPUs will
748           invoke their own RCU callbacks in softirq context.
749
750           Select this option if you want to choose no-CBs CPUs at
751           boot time, for example, to allow testing of different no-CBs
752           configurations without having to rebuild the kernel each time.
753
754 config RCU_NOCB_CPU_ZERO
755         bool "CPU 0 is a build_forced no-CBs CPU"
756         help
757           This option forces CPU 0 to be a no-CBs CPU, so that its RCU
758           callbacks are invoked by a per-CPU kthread whose name begins
759           with "rcuo".  Additional CPUs may be designated as no-CBs
760           CPUs using the rcu_nocbs= boot parameter will be no-CBs CPUs.
761           All other CPUs will invoke their own RCU callbacks in softirq
762           context.
763
764           Select this if CPU 0 needs to be a no-CBs CPU for real-time
765           or energy-efficiency reasons, but the real reason it exists
766           is to ensure that randconfig testing covers mixed systems.
767
768 config RCU_NOCB_CPU_ALL
769         bool "All CPUs are build_forced no-CBs CPUs"
770         help
771           This option forces all CPUs to be no-CBs CPUs.  The rcu_nocbs=
772           boot parameter will be ignored.  All CPUs' RCU callbacks will
773           be executed in the context of per-CPU rcuo kthreads created for
774           this purpose.  Assuming that the kthreads whose names start with
775           "rcuo" are bound to "housekeeping" CPUs, this reduces OS jitter
776           on the remaining CPUs, but might decrease memory locality during
777           RCU-callback invocation, thus potentially degrading throughput.
778
779           Select this if all CPUs need to be no-CBs CPUs for real-time
780           or energy-efficiency reasons.
781
782 endchoice
783
784 config RCU_EXPEDITE_BOOT
785         bool
786         default n
787         help
788           This option enables expedited grace periods at boot time,
789           as if rcu_expedite_gp() had been invoked early in boot.
790           The corresponding rcu_unexpedite_gp() is invoked from
791           rcu_end_inkernel_boot(), which is intended to be invoked
792           at the end of the kernel-only boot sequence, just before
793           init is exec'ed.
794
795           Accept the default if unsure.
796
797 endmenu # "RCU Subsystem"
798
799 config BUILD_BIN2C
800         bool
801         default n
802
803 config IKCONFIG
804         tristate "Kernel .config support"
805         select BUILD_BIN2C
806         ---help---
807           This option enables the complete Linux kernel ".config" file
808           contents to be saved in the kernel. It provides documentation
809           of which kernel options are used in a running kernel or in an
810           on-disk kernel.  This information can be extracted from the kernel
811           image file with the script scripts/extract-ikconfig and used as
812           input to rebuild the current kernel or to build another kernel.
813           It can also be extracted from a running kernel by reading
814           /proc/config.gz if enabled (below).
815
816 config IKCONFIG_PROC
817         bool "Enable access to .config through /proc/config.gz"
818         depends on IKCONFIG && PROC_FS
819         ---help---
820           This option enables access to the kernel configuration file
821           through /proc/config.gz.
822
823 config LOG_BUF_SHIFT
824         int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
825         range 12 25
826         default 17
827         depends on PRINTK
828         help
829           Select the minimal kernel log buffer size as a power of 2.
830           The final size is affected by LOG_CPU_MAX_BUF_SHIFT config
831           parameter, see below. Any higher size also might be forced
832           by "log_buf_len" boot parameter.
833
834           Examples:
835                      17 => 128 KB
836                      16 => 64 KB
837                      15 => 32 KB
838                      14 => 16 KB
839                      13 =>  8 KB
840                      12 =>  4 KB
841
842 config LOG_CPU_MAX_BUF_SHIFT
843         int "CPU kernel log buffer size contribution (13 => 8 KB, 17 => 128KB)"
844         depends on SMP
845         range 0 21
846         default 12 if !BASE_SMALL
847         default 0 if BASE_SMALL
848         depends on PRINTK
849         help
850           This option allows to increase the default ring buffer size
851           according to the number of CPUs. The value defines the contribution
852           of each CPU as a power of 2. The used space is typically only few
853           lines however it might be much more when problems are reported,
854           e.g. backtraces.
855
856           The increased size means that a new buffer has to be allocated and
857           the original static one is unused. It makes sense only on systems
858           with more CPUs. Therefore this value is used only when the sum of
859           contributions is greater than the half of the default kernel ring
860           buffer as defined by LOG_BUF_SHIFT. The default values are set
861           so that more than 64 CPUs are needed to trigger the allocation.
862
863           Also this option is ignored when "log_buf_len" kernel parameter is
864           used as it forces an exact (power of two) size of the ring buffer.
865
866           The number of possible CPUs is used for this computation ignoring
867           hotplugging making the compuation optimal for the the worst case
868           scenerio while allowing a simple algorithm to be used from bootup.
869
870           Examples shift values and their meaning:
871                      17 => 128 KB for each CPU
872                      16 =>  64 KB for each CPU
873                      15 =>  32 KB for each CPU
874                      14 =>  16 KB for each CPU
875                      13 =>   8 KB for each CPU
876                      12 =>   4 KB for each CPU
877
878 #
879 # Architectures with an unreliable sched_clock() should select this:
880 #
881 config HAVE_UNSTABLE_SCHED_CLOCK
882         bool
883
884 config GENERIC_SCHED_CLOCK
885         bool
886
887 #
888 # For architectures that want to enable the support for NUMA-affine scheduler
889 # balancing logic:
890 #
891 config ARCH_SUPPORTS_NUMA_BALANCING
892         bool
893
894 #
895 # For architectures that prefer to flush all TLBs after a number of pages
896 # are unmapped instead of sending one IPI per page to flush. The architecture
897 # must provide guarantees on what happens if a clean TLB cache entry is
898 # written after the unmap. Details are in mm/rmap.c near the check for
899 # should_defer_flush. The architecture should also consider if the full flush
900 # and the refill costs are offset by the savings of sending fewer IPIs.
901 config ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
902         bool
903
904 #
905 # For architectures that know their GCC __int128 support is sound
906 #
907 config ARCH_SUPPORTS_INT128
908         bool
909
910 # For architectures that (ab)use NUMA to represent different memory regions
911 # all cpu-local but of different latencies, such as SuperH.
912 #
913 config ARCH_WANT_NUMA_VARIABLE_LOCALITY
914         bool
915
916 config NUMA_BALANCING
917         bool "Memory placement aware NUMA scheduler"
918         depends on ARCH_SUPPORTS_NUMA_BALANCING
919         depends on !ARCH_WANT_NUMA_VARIABLE_LOCALITY
920         depends on SMP && NUMA && MIGRATION
921         help
922           This option adds support for automatic NUMA aware memory/task placement.
923           The mechanism is quite primitive and is based on migrating memory when
924           it has references to the node the task is running on.
925
926           This system will be inactive on UMA systems.
927
928 config NUMA_BALANCING_DEFAULT_ENABLED
929         bool "Automatically enable NUMA aware memory/task placement"
930         default y
931         depends on NUMA_BALANCING
932         help
933           If set, automatic NUMA balancing will be enabled if running on a NUMA
934           machine.
935
936 menuconfig CGROUPS
937         bool "Control Group support"
938         select KERNFS
939         help
940           This option adds support for grouping sets of processes together, for
941           use with process control subsystems such as Cpusets, CFS, memory
942           controls or device isolation.
943           See
944                 - Documentation/scheduler/sched-design-CFS.txt  (CFS)
945                 - Documentation/cgroups/ (features for grouping, isolation
946                                           and resource control)
947
948           Say N if unsure.
949
950 if CGROUPS
951
952 config CGROUP_DEBUG
953         bool "Example debug cgroup subsystem"
954         default n
955         help
956           This option enables a simple cgroup subsystem that
957           exports useful debugging information about the cgroups
958           framework.
959
960           Say N if unsure.
961
962 config CGROUP_FREEZER
963         bool "Freezer cgroup subsystem"
964         help
965           Provides a way to freeze and unfreeze all tasks in a
966           cgroup.
967
968 config CGROUP_PIDS
969         bool "PIDs cgroup subsystem"
970         help
971           Provides enforcement of process number limits in the scope of a
972           cgroup. Any attempt to fork more processes than is allowed in the
973           cgroup will fail. PIDs are fundamentally a global resource because it
974           is fairly trivial to reach PID exhaustion before you reach even a
975           conservative kmemcg limit. As a result, it is possible to grind a
976           system to halt without being limited by other cgroup policies. The
977           PIDs cgroup subsystem is designed to stop this from happening.
978
979           It should be noted that organisational operations (such as attaching
980           to a cgroup hierarchy will *not* be blocked by the PIDs subsystem),
981           since the PIDs limit only affects a process's ability to fork, not to
982           attach to a cgroup.
983
984 config CGROUP_DEVICE
985         bool "Device controller for cgroups"
986         help
987           Provides a cgroup implementing whitelists for devices which
988           a process in the cgroup can mknod or open.
989
990 config CPUSETS
991         bool "Cpuset support"
992         help
993           This option will let you create and manage CPUSETs which
994           allow dynamically partitioning a system into sets of CPUs and
995           Memory Nodes and assigning tasks to run only within those sets.
996           This is primarily useful on large SMP or NUMA systems.
997
998           Say N if unsure.
999
1000 config PROC_PID_CPUSET
1001         bool "Include legacy /proc/<pid>/cpuset file"
1002         depends on CPUSETS
1003         default y
1004
1005 config CGROUP_CPUACCT
1006         bool "Simple CPU accounting cgroup subsystem"
1007         help
1008           Provides a simple Resource Controller for monitoring the
1009           total CPU consumed by the tasks in a cgroup.
1010
1011 config CGROUP_SCHEDTUNE
1012         bool "CFS tasks boosting cgroup subsystem (EXPERIMENTAL)"
1013         depends on SCHED_TUNE
1014         help
1015           This option provides the "schedtune" controller which improves the
1016           flexibility of the task boosting mechanism by introducing the support
1017           to define "per task" boost values.
1018
1019           This new controller:
1020           1. allows only a two layers hierarchy, where the root defines the
1021              system-wide boost value and its direct childrens define each one a
1022              different "class of tasks" to be boosted with a different value
1023           2. supports up to 16 different task classes, each one which could be
1024              configured with a different boost value
1025
1026           Say N if unsure.
1027
1028 config PAGE_COUNTER
1029        bool
1030
1031 config MEMCG
1032         bool "Memory Resource Controller for Control Groups"
1033         select PAGE_COUNTER
1034         select EVENTFD
1035         help
1036           Provides a memory resource controller that manages both anonymous
1037           memory and page cache. (See Documentation/cgroups/memory.txt)
1038
1039 config MEMCG_SWAP
1040         bool "Memory Resource Controller Swap Extension"
1041         depends on MEMCG && SWAP
1042         help
1043           Add swap management feature to memory resource controller. When you
1044           enable this, you can limit mem+swap usage per cgroup. In other words,
1045           when you disable this, memory resource controller has no cares to
1046           usage of swap...a process can exhaust all of the swap. This extension
1047           is useful when you want to avoid exhaustion swap but this itself
1048           adds more overheads and consumes memory for remembering information.
1049           Especially if you use 32bit system or small memory system, please
1050           be careful about enabling this. When memory resource controller
1051           is disabled by boot option, this will be automatically disabled and
1052           there will be no overhead from this. Even when you set this config=y,
1053           if boot option "swapaccount=0" is set, swap will not be accounted.
1054           Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
1055           size is 4096bytes, 512k per 1Gbytes of swap.
1056 config MEMCG_SWAP_ENABLED
1057         bool "Memory Resource Controller Swap Extension enabled by default"
1058         depends on MEMCG_SWAP
1059         default y
1060         help
1061           Memory Resource Controller Swap Extension comes with its price in
1062           a bigger memory consumption. General purpose distribution kernels
1063           which want to enable the feature but keep it disabled by default
1064           and let the user enable it by swapaccount=1 boot command line
1065           parameter should have this option unselected.
1066           For those who want to have the feature enabled by default should
1067           select this option (if, for some reason, they need to disable it
1068           then swapaccount=0 does the trick).
1069 config MEMCG_KMEM
1070         bool "Memory Resource Controller Kernel Memory accounting"
1071         depends on MEMCG
1072         depends on SLUB || SLAB
1073         help
1074           The Kernel Memory extension for Memory Resource Controller can limit
1075           the amount of memory used by kernel objects in the system. Those are
1076           fundamentally different from the entities handled by the standard
1077           Memory Controller, which are page-based, and can be swapped. Users of
1078           the kmem extension can use it to guarantee that no group of processes
1079           will ever exhaust kernel resources alone.
1080
1081 config CGROUP_HUGETLB
1082         bool "HugeTLB Resource Controller for Control Groups"
1083         depends on HUGETLB_PAGE
1084         select PAGE_COUNTER
1085         default n
1086         help
1087           Provides a cgroup Resource Controller for HugeTLB pages.
1088           When you enable this, you can put a per cgroup limit on HugeTLB usage.
1089           The limit is enforced during page fault. Since HugeTLB doesn't
1090           support page reclaim, enforcing the limit at page fault time implies
1091           that, the application will get SIGBUS signal if it tries to access
1092           HugeTLB pages beyond its limit. This requires the application to know
1093           beforehand how much HugeTLB pages it would require for its use. The
1094           control group is tracked in the third page lru pointer. This means
1095           that we cannot use the controller with huge page less than 3 pages.
1096
1097 config CGROUP_PERF
1098         bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
1099         depends on PERF_EVENTS && CGROUPS
1100         help
1101           This option extends the per-cpu mode to restrict monitoring to
1102           threads which belong to the cgroup specified and run on the
1103           designated cpu.
1104
1105           Say N if unsure.
1106
1107 menuconfig CGROUP_SCHED
1108         bool "Group CPU scheduler"
1109         default n
1110         help
1111           This feature lets CPU scheduler recognize task groups and control CPU
1112           bandwidth allocation to such task groups. It uses cgroups to group
1113           tasks.
1114
1115 if CGROUP_SCHED
1116 config FAIR_GROUP_SCHED
1117         bool "Group scheduling for SCHED_OTHER"
1118         depends on CGROUP_SCHED
1119         default CGROUP_SCHED
1120
1121 config CFS_BANDWIDTH
1122         bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
1123         depends on FAIR_GROUP_SCHED
1124         default n
1125         help
1126           This option allows users to define CPU bandwidth rates (limits) for
1127           tasks running within the fair group scheduler.  Groups with no limit
1128           set are considered to be unconstrained and will run with no
1129           restriction.
1130           See tip/Documentation/scheduler/sched-bwc.txt for more information.
1131
1132 config RT_GROUP_SCHED
1133         bool "Group scheduling for SCHED_RR/FIFO"
1134         depends on CGROUP_SCHED
1135         default n
1136         help
1137           This feature lets you explicitly allocate real CPU bandwidth
1138           to task groups. If enabled, it will also make it impossible to
1139           schedule realtime tasks for non-root users until you allocate
1140           realtime bandwidth for them.
1141           See Documentation/scheduler/sched-rt-group.txt for more information.
1142
1143 endif #CGROUP_SCHED
1144
1145 config BLK_CGROUP
1146         bool "Block IO controller"
1147         depends on BLOCK
1148         default n
1149         ---help---
1150         Generic block IO controller cgroup interface. This is the common
1151         cgroup interface which should be used by various IO controlling
1152         policies.
1153
1154         Currently, CFQ IO scheduler uses it to recognize task groups and
1155         control disk bandwidth allocation (proportional time slice allocation)
1156         to such task groups. It is also used by bio throttling logic in
1157         block layer to implement upper limit in IO rates on a device.
1158
1159         This option only enables generic Block IO controller infrastructure.
1160         One needs to also enable actual IO controlling logic/policy. For
1161         enabling proportional weight division of disk bandwidth in CFQ, set
1162         CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
1163         CONFIG_BLK_DEV_THROTTLING=y.
1164
1165         See Documentation/cgroups/blkio-controller.txt for more information.
1166
1167 config DEBUG_BLK_CGROUP
1168         bool "Enable Block IO controller debugging"
1169         depends on BLK_CGROUP
1170         default n
1171         ---help---
1172         Enable some debugging help. Currently it exports additional stat
1173         files in a cgroup which can be useful for debugging.
1174
1175 config CGROUP_WRITEBACK
1176         bool
1177         depends on MEMCG && BLK_CGROUP
1178         default y
1179
1180 endif # CGROUPS
1181
1182 config CHECKPOINT_RESTORE
1183         bool "Checkpoint/restore support" if EXPERT
1184         select PROC_CHILDREN
1185         default n
1186         help
1187           Enables additional kernel features in a sake of checkpoint/restore.
1188           In particular it adds auxiliary prctl codes to setup process text,
1189           data and heap segment sizes, and a few additional /proc filesystem
1190           entries.
1191
1192           If unsure, say N here.
1193
1194 menuconfig NAMESPACES
1195         bool "Namespaces support" if EXPERT
1196         depends on MULTIUSER
1197         default !EXPERT
1198         help
1199           Provides the way to make tasks work with different objects using
1200           the same id. For example same IPC id may refer to different objects
1201           or same user id or pid may refer to different tasks when used in
1202           different namespaces.
1203
1204 if NAMESPACES
1205
1206 config UTS_NS
1207         bool "UTS namespace"
1208         default y
1209         help
1210           In this namespace tasks see different info provided with the
1211           uname() system call
1212
1213 config IPC_NS
1214         bool "IPC namespace"
1215         depends on (SYSVIPC || POSIX_MQUEUE)
1216         default y
1217         help
1218           In this namespace tasks work with IPC ids which correspond to
1219           different IPC objects in different namespaces.
1220
1221 config USER_NS
1222         bool "User namespace"
1223         default n
1224         help
1225           This allows containers, i.e. vservers, to use user namespaces
1226           to provide different user info for different servers.
1227
1228           When user namespaces are enabled in the kernel it is
1229           recommended that the MEMCG and MEMCG_KMEM options also be
1230           enabled and that user-space use the memory control groups to
1231           limit the amount of memory a memory unprivileged users can
1232           use.
1233
1234           If unsure, say N.
1235
1236 config PID_NS
1237         bool "PID Namespaces"
1238         default y
1239         help
1240           Support process id namespaces.  This allows having multiple
1241           processes with the same pid as long as they are in different
1242           pid namespaces.  This is a building block of containers.
1243
1244 config NET_NS
1245         bool "Network namespace"
1246         depends on NET
1247         default y
1248         help
1249           Allow user space to create what appear to be multiple instances
1250           of the network stack.
1251
1252 endif # NAMESPACES
1253
1254 config SCHED_AUTOGROUP
1255         bool "Automatic process group scheduling"
1256         select CGROUPS
1257         select CGROUP_SCHED
1258         select FAIR_GROUP_SCHED
1259         help
1260           This option optimizes the scheduler for common desktop workloads by
1261           automatically creating and populating task groups.  This separation
1262           of workloads isolates aggressive CPU burners (like build jobs) from
1263           desktop applications.  Task group autogeneration is currently based
1264           upon task session.
1265
1266 config SCHED_TUNE
1267         bool "Boosting for CFS tasks (EXPERIMENTAL)"
1268         depends on SMP
1269         help
1270           This option enables the system-wide support for task boosting.
1271           When this support is enabled a new sysctl interface is exposed to
1272           userspace via:
1273              /proc/sys/kernel/sched_cfs_boost
1274           which allows to set a system-wide boost value in range [0..100].
1275
1276           The currently boosting strategy is implemented in such a way that:
1277           - a 0% boost value requires to operate in "standard" mode by
1278             scheduling all tasks at the minimum capacities required by their
1279             workload demand
1280           - a 100% boost value requires to push at maximum the task
1281             performances, "regardless" of the incurred energy consumption
1282
1283           A boost value in between these two boundaries is used to bias the
1284           power/performance trade-off, the higher the boost value the more the
1285           scheduler is biased toward performance boosting instead of energy
1286           efficiency.
1287
1288           Since this support exposes a single system-wide knob, the specified
1289           boost value is applied to all (CFS) tasks in the system.
1290
1291           If unsure, say N.
1292
1293 config DEFAULT_USE_ENERGY_AWARE
1294         bool "Default to enabling the Energy Aware Scheduler feature"
1295         default n
1296         help
1297           This option defaults the ENERGY_AWARE scheduling feature to true,
1298           as without SCHED_DEBUG set this feature can't be enabled or disabled
1299           via sysctl.
1300
1301           Say N if unsure.
1302
1303 config SYSFS_DEPRECATED
1304         bool "Enable deprecated sysfs features to support old userspace tools"
1305         depends on SYSFS
1306         default n
1307         help
1308           This option adds code that switches the layout of the "block" class
1309           devices, to not show up in /sys/class/block/, but only in
1310           /sys/block/.
1311
1312           This switch is only active when the sysfs.deprecated=1 boot option is
1313           passed or the SYSFS_DEPRECATED_V2 option is set.
1314
1315           This option allows new kernels to run on old distributions and tools,
1316           which might get confused by /sys/class/block/. Since 2007/2008 all
1317           major distributions and tools handle this just fine.
1318
1319           Recent distributions and userspace tools after 2009/2010 depend on
1320           the existence of /sys/class/block/, and will not work with this
1321           option enabled.
1322
1323           Only if you are using a new kernel on an old distribution, you might
1324           need to say Y here.
1325
1326 config SYSFS_DEPRECATED_V2
1327         bool "Enable deprecated sysfs features by default"
1328         default n
1329         depends on SYSFS
1330         depends on SYSFS_DEPRECATED
1331         help
1332           Enable deprecated sysfs by default.
1333
1334           See the CONFIG_SYSFS_DEPRECATED option for more details about this
1335           option.
1336
1337           Only if you are using a new kernel on an old distribution, you might
1338           need to say Y here. Even then, odds are you would not need it
1339           enabled, you can always pass the boot option if absolutely necessary.
1340
1341 config RELAY
1342         bool "Kernel->user space relay support (formerly relayfs)"
1343         help
1344           This option enables support for relay interface support in
1345           certain file systems (such as debugfs).
1346           It is designed to provide an efficient mechanism for tools and
1347           facilities to relay large amounts of data from kernel space to
1348           user space.
1349
1350           If unsure, say N.
1351
1352 config BLK_DEV_INITRD
1353         bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
1354         depends on BROKEN || !FRV
1355         help
1356           The initial RAM filesystem is a ramfs which is loaded by the
1357           boot loader (loadlin or lilo) and that is mounted as root
1358           before the normal boot procedure. It is typically used to
1359           load modules needed to mount the "real" root file system,
1360           etc. See <file:Documentation/initrd.txt> for details.
1361
1362           If RAM disk support (BLK_DEV_RAM) is also included, this
1363           also enables initial RAM disk (initrd) support and adds
1364           15 Kbytes (more on some other architectures) to the kernel size.
1365
1366           If unsure say Y.
1367
1368 if BLK_DEV_INITRD
1369
1370 source "usr/Kconfig"
1371
1372 endif
1373
1374 config CC_OPTIMIZE_FOR_SIZE
1375         bool "Optimize for size"
1376         help
1377           Enabling this option will pass "-Os" instead of "-O2" to
1378           your compiler resulting in a smaller kernel.
1379
1380           If unsure, say N.
1381
1382 config SYSCTL
1383         bool
1384
1385 config ANON_INODES
1386         bool
1387
1388 config HAVE_UID16
1389         bool
1390
1391 config SYSCTL_EXCEPTION_TRACE
1392         bool
1393         help
1394           Enable support for /proc/sys/debug/exception-trace.
1395
1396 config SYSCTL_ARCH_UNALIGN_NO_WARN
1397         bool
1398         help
1399           Enable support for /proc/sys/kernel/ignore-unaligned-usertrap
1400           Allows arch to define/use @no_unaligned_warning to possibly warn
1401           about unaligned access emulation going on under the hood.
1402
1403 config SYSCTL_ARCH_UNALIGN_ALLOW
1404         bool
1405         help
1406           Enable support for /proc/sys/kernel/unaligned-trap
1407           Allows arches to define/use @unaligned_enabled to runtime toggle
1408           the unaligned access emulation.
1409           see arch/parisc/kernel/unaligned.c for reference
1410
1411 config HAVE_PCSPKR_PLATFORM
1412         bool
1413
1414 # interpreter that classic socket filters depend on
1415 config BPF
1416         bool
1417
1418 menuconfig EXPERT
1419         bool "Configure standard kernel features (expert users)"
1420         # Unhide debug options, to make the on-by-default options visible
1421         select DEBUG_KERNEL
1422         help
1423           This option allows certain base kernel options and settings
1424           to be disabled or tweaked. This is for specialized
1425           environments which can tolerate a "non-standard" kernel.
1426           Only use this if you really know what you are doing.
1427
1428 config UID16
1429         bool "Enable 16-bit UID system calls" if EXPERT
1430         depends on HAVE_UID16 && MULTIUSER
1431         default y
1432         help
1433           This enables the legacy 16-bit UID syscall wrappers.
1434
1435 config MULTIUSER
1436         bool "Multiple users, groups and capabilities support" if EXPERT
1437         default y
1438         help
1439           This option enables support for non-root users, groups and
1440           capabilities.
1441
1442           If you say N here, all processes will run with UID 0, GID 0, and all
1443           possible capabilities.  Saying N here also compiles out support for
1444           system calls related to UIDs, GIDs, and capabilities, such as setuid,
1445           setgid, and capset.
1446
1447           If unsure, say Y here.
1448
1449 config SGETMASK_SYSCALL
1450         bool "sgetmask/ssetmask syscalls support" if EXPERT
1451         def_bool PARISC || MN10300 || BLACKFIN || M68K || PPC || MIPS || X86 || SPARC || CRIS || MICROBLAZE || SUPERH
1452         ---help---
1453           sys_sgetmask and sys_ssetmask are obsolete system calls
1454           no longer supported in libc but still enabled by default in some
1455           architectures.
1456
1457           If unsure, leave the default option here.
1458
1459 config SYSFS_SYSCALL
1460         bool "Sysfs syscall support" if EXPERT
1461         default y
1462         ---help---
1463           sys_sysfs is an obsolete system call no longer supported in libc.
1464           Note that disabling this option is more secure but might break
1465           compatibility with some systems.
1466
1467           If unsure say Y here.
1468
1469 config SYSCTL_SYSCALL
1470         bool "Sysctl syscall support" if EXPERT
1471         depends on PROC_SYSCTL
1472         default n
1473         select SYSCTL
1474         ---help---
1475           sys_sysctl uses binary paths that have been found challenging
1476           to properly maintain and use.  The interface in /proc/sys
1477           using paths with ascii names is now the primary path to this
1478           information.
1479
1480           Almost nothing using the binary sysctl interface so if you are
1481           trying to save some space it is probably safe to disable this,
1482           making your kernel marginally smaller.
1483
1484           If unsure say N here.
1485
1486 config KALLSYMS
1487          bool "Load all symbols for debugging/ksymoops" if EXPERT
1488          default y
1489          help
1490            Say Y here to let the kernel print out symbolic crash information and
1491            symbolic stack backtraces. This increases the size of the kernel
1492            somewhat, as all symbols have to be loaded into the kernel image.
1493
1494 config KALLSYMS_ALL
1495         bool "Include all symbols in kallsyms"
1496         depends on DEBUG_KERNEL && KALLSYMS
1497         help
1498            Normally kallsyms only contains the symbols of functions for nicer
1499            OOPS messages and backtraces (i.e., symbols from the text and inittext
1500            sections). This is sufficient for most cases. And only in very rare
1501            cases (e.g., when a debugger is used) all symbols are required (e.g.,
1502            names of variables from the data sections, etc).
1503
1504            This option makes sure that all symbols are loaded into the kernel
1505            image (i.e., symbols from all sections) in cost of increased kernel
1506            size (depending on the kernel configuration, it may be 300KiB or
1507            something like this).
1508
1509            Say N unless you really need all symbols.
1510
1511 config PRINTK
1512         default y
1513         bool "Enable support for printk" if EXPERT
1514         select IRQ_WORK
1515         help
1516           This option enables normal printk support. Removing it
1517           eliminates most of the message strings from the kernel image
1518           and makes the kernel more or less silent. As this makes it
1519           very difficult to diagnose system problems, saying N here is
1520           strongly discouraged.
1521
1522 config BUG
1523         bool "BUG() support" if EXPERT
1524         default y
1525         help
1526           Disabling this option eliminates support for BUG and WARN, reducing
1527           the size of your kernel image and potentially quietly ignoring
1528           numerous fatal conditions. You should only consider disabling this
1529           option for embedded systems with no facilities for reporting errors.
1530           Just say Y.
1531
1532 config ELF_CORE
1533         depends on COREDUMP
1534         default y
1535         bool "Enable ELF core dumps" if EXPERT
1536         help
1537           Enable support for generating core dumps. Disabling saves about 4k.
1538
1539
1540 config PCSPKR_PLATFORM
1541         bool "Enable PC-Speaker support" if EXPERT
1542         depends on HAVE_PCSPKR_PLATFORM
1543         select I8253_LOCK
1544         default y
1545         help
1546           This option allows to disable the internal PC-Speaker
1547           support, saving some memory.
1548
1549 config BASE_FULL
1550         default y
1551         bool "Enable full-sized data structures for core" if EXPERT
1552         help
1553           Disabling this option reduces the size of miscellaneous core
1554           kernel data structures. This saves memory on small machines,
1555           but may reduce performance.
1556
1557 config FUTEX
1558         bool "Enable futex support" if EXPERT
1559         default y
1560         select RT_MUTEXES
1561         help
1562           Disabling this option will cause the kernel to be built without
1563           support for "fast userspace mutexes".  The resulting kernel may not
1564           run glibc-based applications correctly.
1565
1566 config HAVE_FUTEX_CMPXCHG
1567         bool
1568         depends on FUTEX
1569         help
1570           Architectures should select this if futex_atomic_cmpxchg_inatomic()
1571           is implemented and always working. This removes a couple of runtime
1572           checks.
1573
1574 config EPOLL
1575         bool "Enable eventpoll support" if EXPERT
1576         default y
1577         select ANON_INODES
1578         help
1579           Disabling this option will cause the kernel to be built without
1580           support for epoll family of system calls.
1581
1582 config SIGNALFD
1583         bool "Enable signalfd() system call" if EXPERT
1584         select ANON_INODES
1585         default y
1586         help
1587           Enable the signalfd() system call that allows to receive signals
1588           on a file descriptor.
1589
1590           If unsure, say Y.
1591
1592 config TIMERFD
1593         bool "Enable timerfd() system call" if EXPERT
1594         select ANON_INODES
1595         default y
1596         help
1597           Enable the timerfd() system call that allows to receive timer
1598           events on a file descriptor.
1599
1600           If unsure, say Y.
1601
1602 config EVENTFD
1603         bool "Enable eventfd() system call" if EXPERT
1604         select ANON_INODES
1605         default y
1606         help
1607           Enable the eventfd() system call that allows to receive both
1608           kernel notification (ie. KAIO) or userspace notifications.
1609
1610           If unsure, say Y.
1611
1612 # syscall, maps, verifier
1613 config BPF_SYSCALL
1614         bool "Enable bpf() system call"
1615         select ANON_INODES
1616         select BPF
1617         default n
1618         help
1619           Enable the bpf() system call that allows to manipulate eBPF
1620           programs and maps via file descriptors.
1621
1622 config SHMEM
1623         bool "Use full shmem filesystem" if EXPERT
1624         default y
1625         depends on MMU
1626         help
1627           The shmem is an internal filesystem used to manage shared memory.
1628           It is backed by swap and manages resource limits. It is also exported
1629           to userspace as tmpfs if TMPFS is enabled. Disabling this
1630           option replaces shmem and tmpfs with the much simpler ramfs code,
1631           which may be appropriate on small systems without swap.
1632
1633 config AIO
1634         bool "Enable AIO support" if EXPERT
1635         default y
1636         help
1637           This option enables POSIX asynchronous I/O which may by used
1638           by some high performance threaded applications. Disabling
1639           this option saves about 7k.
1640
1641 config ADVISE_SYSCALLS
1642         bool "Enable madvise/fadvise syscalls" if EXPERT
1643         default y
1644         help
1645           This option enables the madvise and fadvise syscalls, used by
1646           applications to advise the kernel about their future memory or file
1647           usage, improving performance. If building an embedded system where no
1648           applications use these syscalls, you can disable this option to save
1649           space.
1650
1651 config USERFAULTFD
1652         bool "Enable userfaultfd() system call"
1653         select ANON_INODES
1654         depends on MMU
1655         help
1656           Enable the userfaultfd() system call that allows to intercept and
1657           handle page faults in userland.
1658
1659 config PCI_QUIRKS
1660         default y
1661         bool "Enable PCI quirk workarounds" if EXPERT
1662         depends on PCI
1663         help
1664           This enables workarounds for various PCI chipset
1665           bugs/quirks. Disable this only if your target machine is
1666           unaffected by PCI quirks.
1667
1668 config MEMBARRIER
1669         bool "Enable membarrier() system call" if EXPERT
1670         default y
1671         help
1672           Enable the membarrier() system call that allows issuing memory
1673           barriers across all running threads, which can be used to distribute
1674           the cost of user-space memory barriers asymmetrically by transforming
1675           pairs of memory barriers into pairs consisting of membarrier() and a
1676           compiler barrier.
1677
1678           If unsure, say Y.
1679
1680 config EMBEDDED
1681         bool "Embedded system"
1682         option allnoconfig_y
1683         select EXPERT
1684         help
1685           This option should be enabled if compiling the kernel for
1686           an embedded system so certain expert options are available
1687           for configuration.
1688
1689 config HAVE_PERF_EVENTS
1690         bool
1691         help
1692           See tools/perf/design.txt for details.
1693
1694 config PERF_USE_VMALLOC
1695         bool
1696         help
1697           See tools/perf/design.txt for details
1698
1699 menu "Kernel Performance Events And Counters"
1700
1701 config PERF_EVENTS
1702         bool "Kernel performance events and counters"
1703         default y if PROFILING
1704         depends on HAVE_PERF_EVENTS
1705         select ANON_INODES
1706         select IRQ_WORK
1707         select SRCU
1708         help
1709           Enable kernel support for various performance events provided
1710           by software and hardware.
1711
1712           Software events are supported either built-in or via the
1713           use of generic tracepoints.
1714
1715           Most modern CPUs support performance events via performance
1716           counter registers. These registers count the number of certain
1717           types of hw events: such as instructions executed, cachemisses
1718           suffered, or branches mis-predicted - without slowing down the
1719           kernel or applications. These registers can also trigger interrupts
1720           when a threshold number of events have passed - and can thus be
1721           used to profile the code that runs on that CPU.
1722
1723           The Linux Performance Event subsystem provides an abstraction of
1724           these software and hardware event capabilities, available via a
1725           system call and used by the "perf" utility in tools/perf/. It
1726           provides per task and per CPU counters, and it provides event
1727           capabilities on top of those.
1728
1729           Say Y if unsure.
1730
1731 config DEBUG_PERF_USE_VMALLOC
1732         default n
1733         bool "Debug: use vmalloc to back perf mmap() buffers"
1734         depends on PERF_EVENTS && DEBUG_KERNEL && !PPC
1735         select PERF_USE_VMALLOC
1736         help
1737          Use vmalloc memory to back perf mmap() buffers.
1738
1739          Mostly useful for debugging the vmalloc code on platforms
1740          that don't require it.
1741
1742          Say N if unsure.
1743
1744 endmenu
1745
1746 config VM_EVENT_COUNTERS
1747         default y
1748         bool "Enable VM event counters for /proc/vmstat" if EXPERT
1749         help
1750           VM event counters are needed for event counts to be shown.
1751           This option allows the disabling of the VM event counters
1752           on EXPERT systems.  /proc/vmstat will only show page counts
1753           if VM event counters are disabled.
1754
1755 config SLUB_DEBUG
1756         default y
1757         bool "Enable SLUB debugging support" if EXPERT
1758         depends on SLUB && SYSFS
1759         help
1760           SLUB has extensive debug support features. Disabling these can
1761           result in significant savings in code size. This also disables
1762           SLUB sysfs support. /sys/slab will not exist and there will be
1763           no support for cache validation etc.
1764
1765 config COMPAT_BRK
1766         bool "Disable heap randomization"
1767         default y
1768         help
1769           Randomizing heap placement makes heap exploits harder, but it
1770           also breaks ancient binaries (including anything libc5 based).
1771           This option changes the bootup default to heap randomization
1772           disabled, and can be overridden at runtime by setting
1773           /proc/sys/kernel/randomize_va_space to 2.
1774
1775           On non-ancient distros (post-2000 ones) N is usually a safe choice.
1776
1777 choice
1778         prompt "Choose SLAB allocator"
1779         default SLUB
1780         help
1781            This option allows to select a slab allocator.
1782
1783 config SLAB
1784         bool "SLAB"
1785         select HAVE_HARDENED_USERCOPY_ALLOCATOR
1786         help
1787           The regular slab allocator that is established and known to work
1788           well in all environments. It organizes cache hot objects in
1789           per cpu and per node queues.
1790
1791 config SLUB
1792         bool "SLUB (Unqueued Allocator)"
1793         select HAVE_HARDENED_USERCOPY_ALLOCATOR
1794         help
1795            SLUB is a slab allocator that minimizes cache line usage
1796            instead of managing queues of cached objects (SLAB approach).
1797            Per cpu caching is realized using slabs of objects instead
1798            of queues of objects. SLUB can use memory efficiently
1799            and has enhanced diagnostics. SLUB is the default choice for
1800            a slab allocator.
1801
1802 config SLOB
1803         depends on EXPERT
1804         bool "SLOB (Simple Allocator)"
1805         help
1806            SLOB replaces the stock allocator with a drastically simpler
1807            allocator. SLOB is generally more space efficient but
1808            does not perform as well on large systems.
1809
1810 endchoice
1811
1812 config SLUB_CPU_PARTIAL
1813         default y
1814         depends on SLUB && SMP
1815         bool "SLUB per cpu partial cache"
1816         help
1817           Per cpu partial caches accellerate objects allocation and freeing
1818           that is local to a processor at the price of more indeterminism
1819           in the latency of the free. On overflow these caches will be cleared
1820           which requires the taking of locks that may cause latency spikes.
1821           Typically one would choose no for a realtime system.
1822
1823 config MMAP_ALLOW_UNINITIALIZED
1824         bool "Allow mmapped anonymous memory to be uninitialized"
1825         depends on EXPERT && !MMU
1826         default n
1827         help
1828           Normally, and according to the Linux spec, anonymous memory obtained
1829           from mmap() has it's contents cleared before it is passed to
1830           userspace.  Enabling this config option allows you to request that
1831           mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
1832           providing a huge performance boost.  If this option is not enabled,
1833           then the flag will be ignored.
1834
1835           This is taken advantage of by uClibc's malloc(), and also by
1836           ELF-FDPIC binfmt's brk and stack allocator.
1837
1838           Because of the obvious security issues, this option should only be
1839           enabled on embedded devices where you control what is run in
1840           userspace.  Since that isn't generally a problem on no-MMU systems,
1841           it is normally safe to say Y here.
1842
1843           See Documentation/nommu-mmap.txt for more information.
1844
1845 config SYSTEM_DATA_VERIFICATION
1846         def_bool n
1847         select SYSTEM_TRUSTED_KEYRING
1848         select KEYS
1849         select CRYPTO
1850         select ASYMMETRIC_KEY_TYPE
1851         select ASYMMETRIC_PUBLIC_KEY_SUBTYPE
1852         select PUBLIC_KEY_ALGO_RSA
1853         select ASN1
1854         select OID_REGISTRY
1855         select X509_CERTIFICATE_PARSER
1856         select PKCS7_MESSAGE_PARSER
1857         help
1858           Provide PKCS#7 message verification using the contents of the system
1859           trusted keyring to provide public keys.  This then can be used for
1860           module verification, kexec image verification and firmware blob
1861           verification.
1862
1863 config PROFILING
1864         bool "Profiling support"
1865         help
1866           Say Y here to enable the extended profiling support mechanisms used
1867           by profilers such as OProfile.
1868
1869 #
1870 # Place an empty function call at each tracepoint site. Can be
1871 # dynamically changed for a probe function.
1872 #
1873 config TRACEPOINTS
1874         bool
1875
1876 source "arch/Kconfig"
1877
1878 endmenu         # General setup
1879
1880 config HAVE_GENERIC_DMA_COHERENT
1881         bool
1882         default n
1883
1884 config SLABINFO
1885         bool
1886         depends on PROC_FS
1887         depends on SLAB || SLUB_DEBUG
1888         default y
1889
1890 config RT_MUTEXES
1891         bool
1892
1893 config BASE_SMALL
1894         int
1895         default 0 if BASE_FULL
1896         default 1 if !BASE_FULL
1897
1898 menuconfig MODULES
1899         bool "Enable loadable module support"
1900         option modules
1901         help
1902           Kernel modules are small pieces of compiled code which can
1903           be inserted in the running kernel, rather than being
1904           permanently built into the kernel.  You use the "modprobe"
1905           tool to add (and sometimes remove) them.  If you say Y here,
1906           many parts of the kernel can be built as modules (by
1907           answering M instead of Y where indicated): this is most
1908           useful for infrequently used options which are not required
1909           for booting.  For more information, see the man pages for
1910           modprobe, lsmod, modinfo, insmod and rmmod.
1911
1912           If you say Y here, you will need to run "make
1913           modules_install" to put the modules under /lib/modules/
1914           where modprobe can find them (you may need to be root to do
1915           this).
1916
1917           If unsure, say Y.
1918
1919 if MODULES
1920
1921 config MODULE_FORCE_LOAD
1922         bool "Forced module loading"
1923         default n
1924         help
1925           Allow loading of modules without version information (ie. modprobe
1926           --force).  Forced module loading sets the 'F' (forced) taint flag and
1927           is usually a really bad idea.
1928
1929 config MODULE_UNLOAD
1930         bool "Module unloading"
1931         help
1932           Without this option you will not be able to unload any
1933           modules (note that some modules may not be unloadable
1934           anyway), which makes your kernel smaller, faster
1935           and simpler.  If unsure, say Y.
1936
1937 config MODULE_FORCE_UNLOAD
1938         bool "Forced module unloading"
1939         depends on MODULE_UNLOAD
1940         help
1941           This option allows you to force a module to unload, even if the
1942           kernel believes it is unsafe: the kernel will remove the module
1943           without waiting for anyone to stop using it (using the -f option to
1944           rmmod).  This is mainly for kernel developers and desperate users.
1945           If unsure, say N.
1946
1947 config MODVERSIONS
1948         bool "Module versioning support"
1949         help
1950           Usually, you have to use modules compiled with your kernel.
1951           Saying Y here makes it sometimes possible to use modules
1952           compiled for different kernels, by adding enough information
1953           to the modules to (hopefully) spot any changes which would
1954           make them incompatible with the kernel you are running.  If
1955           unsure, say N.
1956
1957 config MODULE_SRCVERSION_ALL
1958         bool "Source checksum for all modules"
1959         help
1960           Modules which contain a MODULE_VERSION get an extra "srcversion"
1961           field inserted into their modinfo section, which contains a
1962           sum of the source files which made it.  This helps maintainers
1963           see exactly which source was used to build a module (since
1964           others sometimes change the module source without updating
1965           the version).  With this option, such a "srcversion" field
1966           will be created for all modules.  If unsure, say N.
1967
1968 config MODULE_SIG
1969         bool "Module signature verification"
1970         depends on MODULES
1971         select SYSTEM_DATA_VERIFICATION
1972         help
1973           Check modules for valid signatures upon load: the signature
1974           is simply appended to the module. For more information see
1975           Documentation/module-signing.txt.
1976
1977           Note that this option adds the OpenSSL development packages as a
1978           kernel build dependency so that the signing tool can use its crypto
1979           library.
1980
1981           !!!WARNING!!!  If you enable this option, you MUST make sure that the
1982           module DOES NOT get stripped after being signed.  This includes the
1983           debuginfo strip done by some packagers (such as rpmbuild) and
1984           inclusion into an initramfs that wants the module size reduced.
1985
1986 config MODULE_SIG_FORCE
1987         bool "Require modules to be validly signed"
1988         depends on MODULE_SIG
1989         help
1990           Reject unsigned modules or signed modules for which we don't have a
1991           key.  Without this, such modules will simply taint the kernel.
1992
1993 config MODULE_SIG_ALL
1994         bool "Automatically sign all modules"
1995         default y
1996         depends on MODULE_SIG
1997         help
1998           Sign all modules during make modules_install. Without this option,
1999           modules must be signed manually, using the scripts/sign-file tool.
2000
2001 comment "Do not forget to sign required modules with scripts/sign-file"
2002         depends on MODULE_SIG_FORCE && !MODULE_SIG_ALL
2003
2004 choice
2005         prompt "Which hash algorithm should modules be signed with?"
2006         depends on MODULE_SIG
2007         help
2008           This determines which sort of hashing algorithm will be used during
2009           signature generation.  This algorithm _must_ be built into the kernel
2010           directly so that signature verification can take place.  It is not
2011           possible to load a signed module containing the algorithm to check
2012           the signature on that module.
2013
2014 config MODULE_SIG_SHA1
2015         bool "Sign modules with SHA-1"
2016         select CRYPTO_SHA1
2017
2018 config MODULE_SIG_SHA224
2019         bool "Sign modules with SHA-224"
2020         select CRYPTO_SHA256
2021
2022 config MODULE_SIG_SHA256
2023         bool "Sign modules with SHA-256"
2024         select CRYPTO_SHA256
2025
2026 config MODULE_SIG_SHA384
2027         bool "Sign modules with SHA-384"
2028         select CRYPTO_SHA512
2029
2030 config MODULE_SIG_SHA512
2031         bool "Sign modules with SHA-512"
2032         select CRYPTO_SHA512
2033
2034 endchoice
2035
2036 config MODULE_SIG_HASH
2037         string
2038         depends on MODULE_SIG
2039         default "sha1" if MODULE_SIG_SHA1
2040         default "sha224" if MODULE_SIG_SHA224
2041         default "sha256" if MODULE_SIG_SHA256
2042         default "sha384" if MODULE_SIG_SHA384
2043         default "sha512" if MODULE_SIG_SHA512
2044
2045 config MODULE_COMPRESS
2046         bool "Compress modules on installation"
2047         depends on MODULES
2048         help
2049
2050           Compresses kernel modules when 'make modules_install' is run; gzip or
2051           xz depending on "Compression algorithm" below.
2052
2053           module-init-tools MAY support gzip, and kmod MAY support gzip and xz.
2054
2055           Out-of-tree kernel modules installed using Kbuild will also be
2056           compressed upon installation.
2057
2058           Note: for modules inside an initrd or initramfs, it's more efficient
2059           to compress the whole initrd or initramfs instead.
2060
2061           Note: This is fully compatible with signed modules.
2062
2063           If in doubt, say N.
2064
2065 choice
2066         prompt "Compression algorithm"
2067         depends on MODULE_COMPRESS
2068         default MODULE_COMPRESS_GZIP
2069         help
2070           This determines which sort of compression will be used during
2071           'make modules_install'.
2072
2073           GZIP (default) and XZ are supported.
2074
2075 config MODULE_COMPRESS_GZIP
2076         bool "GZIP"
2077
2078 config MODULE_COMPRESS_XZ
2079         bool "XZ"
2080
2081 endchoice
2082
2083 endif # MODULES
2084
2085 config MODULES_TREE_LOOKUP
2086         def_bool y
2087         depends on PERF_EVENTS || TRACING
2088
2089 config INIT_ALL_POSSIBLE
2090         bool
2091         help
2092           Back when each arch used to define their own cpu_online_mask and
2093           cpu_possible_mask, some of them chose to initialize cpu_possible_mask
2094           with all 1s, and others with all 0s.  When they were centralised,
2095           it was better to provide this option than to break all the archs
2096           and have several arch maintainers pursuing me down dark alleys.
2097
2098 source "block/Kconfig"
2099
2100 config PREEMPT_NOTIFIERS
2101         bool
2102
2103 config PADATA
2104         depends on SMP
2105         bool
2106
2107 # Can be selected by architectures with broken toolchains
2108 # that get confused by correct const<->read_only section
2109 # mappings
2110 config BROKEN_RODATA
2111         bool
2112
2113 config ASN1
2114         tristate
2115         help
2116           Build a simple ASN.1 grammar compiler that produces a bytecode output
2117           that can be interpreted by the ASN.1 stream decoder and used to
2118           inform it as to what tags are to be expected in a stream and what
2119           functions to call on what tags.
2120
2121 source "kernel/Kconfig.locks"