Kconfig 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413
  1. config ARCH
  2. string
  3. option env="ARCH"
  4. config KERNELVERSION
  5. string
  6. option env="KERNELVERSION"
  7. config DEFCONFIG_LIST
  8. string
  9. depends on !UML
  10. option defconfig_list
  11. default "/lib/modules/$UNAME_RELEASE/.config"
  12. default "/etc/kernel-config"
  13. default "/boot/config-$UNAME_RELEASE"
  14. default "$ARCH_DEFCONFIG"
  15. default "arch/$ARCH/defconfig"
  16. config CONSTRUCTORS
  17. bool
  18. depends on !UML
  19. config HAVE_IRQ_WORK
  20. bool
  21. config IRQ_WORK
  22. bool
  23. depends on HAVE_IRQ_WORK
  24. menu "General setup"
  25. config EXPERIMENTAL
  26. bool "Prompt for development and/or incomplete code/drivers"
  27. ---help---
  28. Some of the various things that Linux supports (such as network
  29. drivers, file systems, network protocols, etc.) can be in a state
  30. of development where the functionality, stability, or the level of
  31. testing is not yet high enough for general use. This is usually
  32. known as the "alpha-test" phase among developers. If a feature is
  33. currently in alpha-test, then the developers usually discourage
  34. uninformed widespread use of this feature by the general public to
  35. avoid "Why doesn't this work?" type mail messages. However, active
  36. testing and use of these systems is welcomed. Just be aware that it
  37. may not meet the normal level of reliability or it may fail to work
  38. in some special cases. Detailed bug reports from people familiar
  39. with the kernel internals are usually welcomed by the developers
  40. (before submitting bug reports, please read the documents
  41. <file:README>, <file:MAINTAINERS>, <file:REPORTING-BUGS>,
  42. <file:Documentation/BUG-HUNTING>, and
  43. <file:Documentation/oops-tracing.txt> in the kernel source).
  44. This option will also make obsoleted drivers available. These are
  45. drivers that have been replaced by something else, and/or are
  46. scheduled to be removed in a future kernel release.
  47. Unless you intend to help test and develop a feature or driver that
  48. falls into this category, or you have a situation that requires
  49. using these features, you should probably say N here, which will
  50. cause the configurator to present you with fewer choices. If
  51. you say Y here, you will be offered the choice of using features or
  52. drivers that are currently considered to be in the alpha-test phase.
  53. config BROKEN
  54. bool
  55. config BROKEN_ON_SMP
  56. bool
  57. depends on BROKEN || !SMP
  58. default y
  59. config INIT_ENV_ARG_LIMIT
  60. int
  61. default 32 if !UML
  62. default 128 if UML
  63. help
  64. Maximum of each of the number of arguments and environment
  65. variables passed to init from the kernel command line.
  66. config CROSS_COMPILE
  67. string "Cross-compiler tool prefix"
  68. help
  69. Same as running 'make CROSS_COMPILE=prefix-' but stored for
  70. default make runs in this kernel build directory. You don't
  71. need to set this unless you want the configured kernel build
  72. directory to select the cross-compiler automatically.
  73. config LOCALVERSION
  74. string "Local version - append to kernel release"
  75. help
  76. Append an extra string to the end of your kernel version.
  77. This will show up when you type uname, for example.
  78. The string you set here will be appended after the contents of
  79. any files with a filename matching localversion* in your
  80. object and source tree, in that order. Your total string can
  81. be a maximum of 64 characters.
  82. config LOCALVERSION_AUTO
  83. bool "Automatically append version information to the version string"
  84. default y
  85. help
  86. This will try to automatically determine if the current tree is a
  87. release tree by looking for git tags that belong to the current
  88. top of tree revision.
  89. A string of the format -gxxxxxxxx will be added to the localversion
  90. if a git-based tree is found. The string generated by this will be
  91. appended after any matching localversion* files, and after the value
  92. set in CONFIG_LOCALVERSION.
  93. (The actual string used here is the first eight characters produced
  94. by running the command:
  95. $ git rev-parse --verify HEAD
  96. which is done within the script "scripts/setlocalversion".)
  97. config HAVE_KERNEL_GZIP
  98. bool
  99. config HAVE_KERNEL_BZIP2
  100. bool
  101. config HAVE_KERNEL_LZMA
  102. bool
  103. config HAVE_KERNEL_XZ
  104. bool
  105. config HAVE_KERNEL_LZO
  106. bool
  107. choice
  108. prompt "Kernel compression mode"
  109. default KERNEL_GZIP
  110. depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO
  111. help
  112. The linux kernel is a kind of self-extracting executable.
  113. Several compression algorithms are available, which differ
  114. in efficiency, compression and decompression speed.
  115. Compression speed is only relevant when building a kernel.
  116. Decompression speed is relevant at each boot.
  117. If you have any problems with bzip2 or lzma compressed
  118. kernels, mail me (Alain Knaff) <alain@knaff.lu>. (An older
  119. version of this functionality (bzip2 only), for 2.4, was
  120. supplied by Christian Ludwig)
  121. High compression options are mostly useful for users, who
  122. are low on disk space (embedded systems), but for whom ram
  123. size matters less.
  124. If in doubt, select 'gzip'
  125. config KERNEL_GZIP
  126. bool "Gzip"
  127. depends on HAVE_KERNEL_GZIP
  128. help
  129. The old and tried gzip compression. It provides a good balance
  130. between compression ratio and decompression speed.
  131. config KERNEL_BZIP2
  132. bool "Bzip2"
  133. depends on HAVE_KERNEL_BZIP2
  134. help
  135. Its compression ratio and speed is intermediate.
  136. Decompression speed is slowest among the three. The kernel
  137. size is about 10% smaller with bzip2, in comparison to gzip.
  138. Bzip2 uses a large amount of memory. For modern kernels you
  139. will need at least 8MB RAM or more for booting.
  140. config KERNEL_LZMA
  141. bool "LZMA"
  142. depends on HAVE_KERNEL_LZMA
  143. help
  144. The most recent compression algorithm.
  145. Its ratio is best, decompression speed is between the other
  146. two. Compression is slowest. The kernel size is about 33%
  147. smaller with LZMA in comparison to gzip.
  148. config KERNEL_XZ
  149. bool "XZ"
  150. depends on HAVE_KERNEL_XZ
  151. help
  152. XZ uses the LZMA2 algorithm and instruction set specific
  153. BCJ filters which can improve compression ratio of executable
  154. code. The size of the kernel is about 30% smaller with XZ in
  155. comparison to gzip. On architectures for which there is a BCJ
  156. filter (i386, x86_64, ARM, IA-64, PowerPC, and SPARC), XZ
  157. will create a few percent smaller kernel than plain LZMA.
  158. The speed is about the same as with LZMA: The decompression
  159. speed of XZ is better than that of bzip2 but worse than gzip
  160. and LZO. Compression is slow.
  161. config KERNEL_LZO
  162. bool "LZO"
  163. depends on HAVE_KERNEL_LZO
  164. help
  165. Its compression ratio is the poorest among the 4. The kernel
  166. size is about 10% bigger than gzip; however its speed
  167. (both compression and decompression) is the fastest.
  168. endchoice
  169. config DEFAULT_HOSTNAME
  170. string "Default hostname"
  171. default "(none)"
  172. help
  173. This option determines the default system hostname before userspace
  174. calls sethostname(2). The kernel traditionally uses "(none)" here,
  175. but you may wish to use a different default here to make a minimal
  176. system more usable with less configuration.
  177. config SWAP
  178. bool "Support for paging of anonymous memory (swap)"
  179. depends on MMU && BLOCK
  180. default y
  181. help
  182. This option allows you to choose whether you want to have support
  183. for so called swap devices or swap files in your kernel that are
  184. used to provide more virtual memory than the actual RAM present
  185. in your computer. If unsure say Y.
  186. config SYSVIPC
  187. bool "System V IPC"
  188. ---help---
  189. Inter Process Communication is a suite of library functions and
  190. system calls which let processes (running programs) synchronize and
  191. exchange information. It is generally considered to be a good thing,
  192. and some programs won't run unless you say Y here. In particular, if
  193. you want to run the DOS emulator dosemu under Linux (read the
  194. DOSEMU-HOWTO, available from <http://www.tldp.org/docs.html#howto>),
  195. you'll need to say Y here.
  196. You can find documentation about IPC with "info ipc" and also in
  197. section 6.4 of the Linux Programmer's Guide, available from
  198. <http://www.tldp.org/guides.html>.
  199. config SYSVIPC_SYSCTL
  200. bool
  201. depends on SYSVIPC
  202. depends on SYSCTL
  203. default y
  204. config POSIX_MQUEUE
  205. bool "POSIX Message Queues"
  206. depends on NET && EXPERIMENTAL
  207. ---help---
  208. POSIX variant of message queues is a part of IPC. In POSIX message
  209. queues every message has a priority which decides about succession
  210. of receiving it by a process. If you want to compile and run
  211. programs written e.g. for Solaris with use of its POSIX message
  212. queues (functions mq_*) say Y here.
  213. POSIX message queues are visible as a filesystem called 'mqueue'
  214. and can be mounted somewhere if you want to do filesystem
  215. operations on message queues.
  216. If unsure, say Y.
  217. config POSIX_MQUEUE_SYSCTL
  218. bool
  219. depends on POSIX_MQUEUE
  220. depends on SYSCTL
  221. default y
  222. config BSD_PROCESS_ACCT
  223. bool "BSD Process Accounting"
  224. help
  225. If you say Y here, a user level program will be able to instruct the
  226. kernel (via a special system call) to write process accounting
  227. information to a file: whenever a process exits, information about
  228. that process will be appended to the file by the kernel. The
  229. information includes things such as creation time, owning user,
  230. command name, memory usage, controlling terminal etc. (the complete
  231. list is in the struct acct in <file:include/linux/acct.h>). It is
  232. up to the user level program to do useful things with this
  233. information. This is generally a good idea, so say Y.
  234. config BSD_PROCESS_ACCT_V3
  235. bool "BSD Process Accounting version 3 file format"
  236. depends on BSD_PROCESS_ACCT
  237. default n
  238. help
  239. If you say Y here, the process accounting information is written
  240. in a new file format that also logs the process IDs of each
  241. process and it's parent. Note that this file format is incompatible
  242. with previous v0/v1/v2 file formats, so you will need updated tools
  243. for processing it. A preliminary version of these tools is available
  244. at <http://www.gnu.org/software/acct/>.
  245. config FHANDLE
  246. bool "open by fhandle syscalls"
  247. select EXPORTFS
  248. help
  249. If you say Y here, a user level program will be able to map
  250. file names to handle and then later use the handle for
  251. different file system operations. This is useful in implementing
  252. userspace file servers, which now track files using handles instead
  253. of names. The handle would remain the same even if file names
  254. get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
  255. syscalls.
  256. config TASKSTATS
  257. bool "Export task/process statistics through netlink (EXPERIMENTAL)"
  258. depends on NET
  259. default n
  260. help
  261. Export selected statistics for tasks/processes through the
  262. generic netlink interface. Unlike BSD process accounting, the
  263. statistics are available during the lifetime of tasks/processes as
  264. responses to commands. Like BSD accounting, they are sent to user
  265. space on task exit.
  266. Say N if unsure.
  267. config TASK_DELAY_ACCT
  268. bool "Enable per-task delay accounting (EXPERIMENTAL)"
  269. depends on TASKSTATS
  270. help
  271. Collect information on time spent by a task waiting for system
  272. resources like cpu, synchronous block I/O completion and swapping
  273. in pages. Such statistics can help in setting a task's priorities
  274. relative to other tasks for cpu, io, rss limits etc.
  275. Say N if unsure.
  276. config TASK_XACCT
  277. bool "Enable extended accounting over taskstats (EXPERIMENTAL)"
  278. depends on TASKSTATS
  279. help
  280. Collect extended task accounting data and send the data
  281. to userland for processing over the taskstats interface.
  282. Say N if unsure.
  283. config TASK_IO_ACCOUNTING
  284. bool "Enable per-task storage I/O accounting (EXPERIMENTAL)"
  285. depends on TASK_XACCT
  286. help
  287. Collect information on the number of bytes of storage I/O which this
  288. task has caused.
  289. Say N if unsure.
  290. config AUDIT
  291. bool "Auditing support"
  292. depends on NET
  293. help
  294. Enable auditing infrastructure that can be used with another
  295. kernel subsystem, such as SELinux (which requires this for
  296. logging of avc messages output). Does not do system-call
  297. auditing without CONFIG_AUDITSYSCALL.
  298. config AUDITSYSCALL
  299. bool "Enable system-call auditing support"
  300. depends on AUDIT && (X86 || PPC || S390 || IA64 || UML || SPARC64 || SUPERH)
  301. default y if SECURITY_SELINUX
  302. help
  303. Enable low-overhead system-call auditing infrastructure that
  304. can be used independently or with another kernel subsystem,
  305. such as SELinux.
  306. config AUDIT_WATCH
  307. def_bool y
  308. depends on AUDITSYSCALL
  309. select FSNOTIFY
  310. config AUDIT_TREE
  311. def_bool y
  312. depends on AUDITSYSCALL
  313. select FSNOTIFY
  314. source "kernel/irq/Kconfig"
  315. menu "RCU Subsystem"
  316. choice
  317. prompt "RCU Implementation"
  318. default TREE_RCU
  319. config TREE_RCU
  320. bool "Tree-based hierarchical RCU"
  321. depends on !PREEMPT && SMP
  322. help
  323. This option selects the RCU implementation that is
  324. designed for very large SMP system with hundreds or
  325. thousands of CPUs. It also scales down nicely to
  326. smaller systems.
  327. config TREE_PREEMPT_RCU
  328. bool "Preemptible tree-based hierarchical RCU"
  329. depends on PREEMPT && SMP
  330. help
  331. This option selects the RCU implementation that is
  332. designed for very large SMP systems with hundreds or
  333. thousands of CPUs, but for which real-time response
  334. is also required. It also scales down nicely to
  335. smaller systems.
  336. config TINY_RCU
  337. bool "UP-only small-memory-footprint RCU"
  338. depends on !PREEMPT && !SMP
  339. help
  340. This option selects the RCU implementation that is
  341. designed for UP systems from which real-time response
  342. is not required. This option greatly reduces the
  343. memory footprint of RCU.
  344. config TINY_PREEMPT_RCU
  345. bool "Preemptible UP-only small-memory-footprint RCU"
  346. depends on PREEMPT && !SMP
  347. help
  348. This option selects the RCU implementation that is designed
  349. for real-time UP systems. This option greatly reduces the
  350. memory footprint of RCU.
  351. endchoice
  352. config PREEMPT_RCU
  353. def_bool ( TREE_PREEMPT_RCU || TINY_PREEMPT_RCU )
  354. help
  355. This option enables preemptible-RCU code that is common between
  356. the TREE_PREEMPT_RCU and TINY_PREEMPT_RCU implementations.
  357. config RCU_TRACE
  358. bool "Enable tracing for RCU"
  359. help
  360. This option provides tracing in RCU which presents stats
  361. in debugfs for debugging RCU implementation.
  362. Say Y here if you want to enable RCU tracing
  363. Say N if you are unsure.
  364. config RCU_FANOUT
  365. int "Tree-based hierarchical RCU fanout value"
  366. range 2 64 if 64BIT
  367. range 2 32 if !64BIT
  368. depends on TREE_RCU || TREE_PREEMPT_RCU
  369. default 64 if 64BIT
  370. default 32 if !64BIT
  371. help
  372. This option controls the fanout of hierarchical implementations
  373. of RCU, allowing RCU to work efficiently on machines with
  374. large numbers of CPUs. This value must be at least the fourth
  375. root of NR_CPUS, which allows NR_CPUS to be insanely large.
  376. The default value of RCU_FANOUT should be used for production
  377. systems, but if you are stress-testing the RCU implementation
  378. itself, small RCU_FANOUT values allow you to test large-system
  379. code paths on small(er) systems.
  380. Select a specific number if testing RCU itself.
  381. Take the default if unsure.
  382. config RCU_FANOUT_EXACT
  383. bool "Disable tree-based hierarchical RCU auto-balancing"
  384. depends on TREE_RCU || TREE_PREEMPT_RCU
  385. default n
  386. help
  387. This option forces use of the exact RCU_FANOUT value specified,
  388. regardless of imbalances in the hierarchy. This is useful for
  389. testing RCU itself, and might one day be useful on systems with
  390. strong NUMA behavior.
  391. Without RCU_FANOUT_EXACT, the code will balance the hierarchy.
  392. Say N if unsure.
  393. config RCU_FAST_NO_HZ
  394. bool "Accelerate last non-dyntick-idle CPU's grace periods"
  395. depends on TREE_RCU && NO_HZ && SMP
  396. default n
  397. help
  398. This option causes RCU to attempt to accelerate grace periods
  399. in order to allow the final CPU to enter dynticks-idle state
  400. more quickly. On the other hand, this option increases the
  401. overhead of the dynticks-idle checking, particularly on systems
  402. with large numbers of CPUs.
  403. Say Y if energy efficiency is critically important, particularly
  404. if you have relatively few CPUs.
  405. Say N if you are unsure.
  406. config TREE_RCU_TRACE
  407. def_bool RCU_TRACE && ( TREE_RCU || TREE_PREEMPT_RCU )
  408. select DEBUG_FS
  409. help
  410. This option provides tracing for the TREE_RCU and
  411. TREE_PREEMPT_RCU implementations, permitting Makefile to
  412. trivially select kernel/rcutree_trace.c.
  413. config RCU_BOOST
  414. bool "Enable RCU priority boosting"
  415. depends on RT_MUTEXES && PREEMPT_RCU
  416. default n
  417. help
  418. This option boosts the priority of preempted RCU readers that
  419. block the current preemptible RCU grace period for too long.
  420. This option also prevents heavy loads from blocking RCU
  421. callback invocation for all flavors of RCU.
  422. Say Y here if you are working with real-time apps or heavy loads
  423. Say N here if you are unsure.
  424. config RCU_BOOST_PRIO
  425. int "Real-time priority to boost RCU readers to"
  426. range 1 99
  427. depends on RCU_BOOST
  428. default 1
  429. help
  430. This option specifies the real-time priority to which preempted
  431. RCU readers are to be boosted. If you are working with CPU-bound
  432. real-time applications, you should specify a priority higher then
  433. the highest-priority CPU-bound application.
  434. Specify the real-time priority, or take the default if unsure.
  435. config RCU_BOOST_DELAY
  436. int "Milliseconds to delay boosting after RCU grace-period start"
  437. range 0 3000
  438. depends on RCU_BOOST
  439. default 500
  440. help
  441. This option specifies the time to wait after the beginning of
  442. a given grace period before priority-boosting preempted RCU
  443. readers blocking that grace period. Note that any RCU reader
  444. blocking an expedited RCU grace period is boosted immediately.
  445. Accept the default if unsure.
  446. endmenu # "RCU Subsystem"
  447. config IKCONFIG
  448. tristate "Kernel .config support"
  449. ---help---
  450. This option enables the complete Linux kernel ".config" file
  451. contents to be saved in the kernel. It provides documentation
  452. of which kernel options are used in a running kernel or in an
  453. on-disk kernel. This information can be extracted from the kernel
  454. image file with the script scripts/extract-ikconfig and used as
  455. input to rebuild the current kernel or to build another kernel.
  456. It can also be extracted from a running kernel by reading
  457. /proc/config.gz if enabled (below).
  458. config IKCONFIG_PROC
  459. bool "Enable access to .config through /proc/config.gz"
  460. depends on IKCONFIG && PROC_FS
  461. ---help---
  462. This option enables access to the kernel configuration file
  463. through /proc/config.gz.
  464. config LOG_BUF_SHIFT
  465. int "Kernel log buffer size (16 => 64KB, 17 => 128KB)"
  466. range 12 21
  467. default 17
  468. help
  469. Select kernel log buffer size as a power of 2.
  470. Examples:
  471. 17 => 128 KB
  472. 16 => 64 KB
  473. 15 => 32 KB
  474. 14 => 16 KB
  475. 13 => 8 KB
  476. 12 => 4 KB
  477. #
  478. # Architectures with an unreliable sched_clock() should select this:
  479. #
  480. config HAVE_UNSTABLE_SCHED_CLOCK
  481. bool
  482. menuconfig CGROUPS
  483. boolean "Control Group support"
  484. depends on EVENTFD
  485. help
  486. This option adds support for grouping sets of processes together, for
  487. use with process control subsystems such as Cpusets, CFS, memory
  488. controls or device isolation.
  489. See
  490. - Documentation/scheduler/sched-design-CFS.txt (CFS)
  491. - Documentation/cgroups/ (features for grouping, isolation
  492. and resource control)
  493. Say N if unsure.
  494. if CGROUPS
  495. config CGROUP_DEBUG
  496. bool "Example debug cgroup subsystem"
  497. default n
  498. help
  499. This option enables a simple cgroup subsystem that
  500. exports useful debugging information about the cgroups
  501. framework.
  502. Say N if unsure.
  503. config CGROUP_FREEZER
  504. bool "Freezer cgroup subsystem"
  505. help
  506. Provides a way to freeze and unfreeze all tasks in a
  507. cgroup.
  508. config CGROUP_DEVICE
  509. bool "Device controller for cgroups"
  510. help
  511. Provides a cgroup implementing whitelists for devices which
  512. a process in the cgroup can mknod or open.
  513. config CPUSETS
  514. bool "Cpuset support"
  515. help
  516. This option will let you create and manage CPUSETs which
  517. allow dynamically partitioning a system into sets of CPUs and
  518. Memory Nodes and assigning tasks to run only within those sets.
  519. This is primarily useful on large SMP or NUMA systems.
  520. Say N if unsure.
  521. config PROC_PID_CPUSET
  522. bool "Include legacy /proc/<pid>/cpuset file"
  523. depends on CPUSETS
  524. default y
  525. config CGROUP_CPUACCT
  526. bool "Simple CPU accounting cgroup subsystem"
  527. help
  528. Provides a simple Resource Controller for monitoring the
  529. total CPU consumed by the tasks in a cgroup.
  530. config RESOURCE_COUNTERS
  531. bool "Resource counters"
  532. help
  533. This option enables controller independent resource accounting
  534. infrastructure that works with cgroups.
  535. config CGROUP_MEM_RES_CTLR
  536. bool "Memory Resource Controller for Control Groups"
  537. depends on RESOURCE_COUNTERS
  538. select MM_OWNER
  539. help
  540. Provides a memory resource controller that manages both anonymous
  541. memory and page cache. (See Documentation/cgroups/memory.txt)
  542. Note that setting this option increases fixed memory overhead
  543. associated with each page of memory in the system. By this,
  544. 20(40)bytes/PAGE_SIZE on 32(64)bit system will be occupied by memory
  545. usage tracking struct at boot. Total amount of this is printed out
  546. at boot.
  547. Only enable when you're ok with these trade offs and really
  548. sure you need the memory resource controller. Even when you enable
  549. this, you can set "cgroup_disable=memory" at your boot option to
  550. disable memory resource controller and you can avoid overheads.
  551. (and lose benefits of memory resource controller)
  552. This config option also selects MM_OWNER config option, which
  553. could in turn add some fork/exit overhead.
  554. config CGROUP_MEM_RES_CTLR_SWAP
  555. bool "Memory Resource Controller Swap Extension"
  556. depends on CGROUP_MEM_RES_CTLR && SWAP
  557. help
  558. Add swap management feature to memory resource controller. When you
  559. enable this, you can limit mem+swap usage per cgroup. In other words,
  560. when you disable this, memory resource controller has no cares to
  561. usage of swap...a process can exhaust all of the swap. This extension
  562. is useful when you want to avoid exhaustion swap but this itself
  563. adds more overheads and consumes memory for remembering information.
  564. Especially if you use 32bit system or small memory system, please
  565. be careful about enabling this. When memory resource controller
  566. is disabled by boot option, this will be automatically disabled and
  567. there will be no overhead from this. Even when you set this config=y,
  568. if boot option "swapaccount=0" is set, swap will not be accounted.
  569. Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page
  570. size is 4096bytes, 512k per 1Gbytes of swap.
  571. config CGROUP_MEM_RES_CTLR_SWAP_ENABLED
  572. bool "Memory Resource Controller Swap Extension enabled by default"
  573. depends on CGROUP_MEM_RES_CTLR_SWAP
  574. default y
  575. help
  576. Memory Resource Controller Swap Extension comes with its price in
  577. a bigger memory consumption. General purpose distribution kernels
  578. which want to enable the feature but keep it disabled by default
  579. and let the user enable it by swapaccount boot command line
  580. parameter should have this option unselected.
  581. For those who want to have the feature enabled by default should
  582. select this option (if, for some reason, they need to disable it
  583. then swapaccount=0 does the trick).
  584. config CGROUP_PERF
  585. bool "Enable perf_event per-cpu per-container group (cgroup) monitoring"
  586. depends on PERF_EVENTS && CGROUPS
  587. help
  588. This option extends the per-cpu mode to restrict monitoring to
  589. threads which belong to the cgroup specified and run on the
  590. designated cpu.
  591. Say N if unsure.
  592. menuconfig CGROUP_SCHED
  593. bool "Group CPU scheduler"
  594. depends on EXPERIMENTAL
  595. default n
  596. help
  597. This feature lets CPU scheduler recognize task groups and control CPU
  598. bandwidth allocation to such task groups. It uses cgroups to group
  599. tasks.
  600. if CGROUP_SCHED
  601. config FAIR_GROUP_SCHED
  602. bool "Group scheduling for SCHED_OTHER"
  603. depends on CGROUP_SCHED
  604. default CGROUP_SCHED
  605. config CFS_BANDWIDTH
  606. bool "CPU bandwidth provisioning for FAIR_GROUP_SCHED"
  607. depends on EXPERIMENTAL
  608. depends on FAIR_GROUP_SCHED
  609. default n
  610. help
  611. This option allows users to define CPU bandwidth rates (limits) for
  612. tasks running within the fair group scheduler. Groups with no limit
  613. set are considered to be unconstrained and will run with no
  614. restriction.
  615. See tip/Documentation/scheduler/sched-bwc.txt for more information.
  616. config RT_GROUP_SCHED
  617. bool "Group scheduling for SCHED_RR/FIFO"
  618. depends on EXPERIMENTAL
  619. depends on CGROUP_SCHED
  620. default n
  621. help
  622. This feature lets you explicitly allocate real CPU bandwidth
  623. to task groups. If enabled, it will also make it impossible to
  624. schedule realtime tasks for non-root users until you allocate
  625. realtime bandwidth for them.
  626. See Documentation/scheduler/sched-rt-group.txt for more information.
  627. endif #CGROUP_SCHED
  628. config BLK_CGROUP
  629. tristate "Block IO controller"
  630. depends on BLOCK
  631. default n
  632. ---help---
  633. Generic block IO controller cgroup interface. This is the common
  634. cgroup interface which should be used by various IO controlling
  635. policies.
  636. Currently, CFQ IO scheduler uses it to recognize task groups and
  637. control disk bandwidth allocation (proportional time slice allocation)
  638. to such task groups. It is also used by bio throttling logic in
  639. block layer to implement upper limit in IO rates on a device.
  640. This option only enables generic Block IO controller infrastructure.
  641. One needs to also enable actual IO controlling logic/policy. For
  642. enabling proportional weight division of disk bandwidth in CFQ, set
  643. CONFIG_CFQ_GROUP_IOSCHED=y; for enabling throttling policy, set
  644. CONFIG_BLK_DEV_THROTTLING=y.
  645. See Documentation/cgroups/blkio-controller.txt for more information.
  646. config DEBUG_BLK_CGROUP
  647. bool "Enable Block IO controller debugging"
  648. depends on BLK_CGROUP
  649. default n
  650. ---help---
  651. Enable some debugging help. Currently it exports additional stat
  652. files in a cgroup which can be useful for debugging.
  653. endif # CGROUPS
  654. menuconfig NAMESPACES
  655. bool "Namespaces support" if EXPERT
  656. default !EXPERT
  657. help
  658. Provides the way to make tasks work with different objects using
  659. the same id. For example same IPC id may refer to different objects
  660. or same user id or pid may refer to different tasks when used in
  661. different namespaces.
  662. if NAMESPACES
  663. config UTS_NS
  664. bool "UTS namespace"
  665. default y
  666. help
  667. In this namespace tasks see different info provided with the
  668. uname() system call
  669. config IPC_NS
  670. bool "IPC namespace"
  671. depends on (SYSVIPC || POSIX_MQUEUE)
  672. default y
  673. help
  674. In this namespace tasks work with IPC ids which correspond to
  675. different IPC objects in different namespaces.
  676. config USER_NS
  677. bool "User namespace (EXPERIMENTAL)"
  678. depends on EXPERIMENTAL
  679. default y
  680. help
  681. This allows containers, i.e. vservers, to use user namespaces
  682. to provide different user info for different servers.
  683. If unsure, say N.
  684. config PID_NS
  685. bool "PID Namespaces"
  686. default y
  687. help
  688. Support process id namespaces. This allows having multiple
  689. processes with the same pid as long as they are in different
  690. pid namespaces. This is a building block of containers.
  691. config NET_NS
  692. bool "Network namespace"
  693. depends on NET
  694. default y
  695. help
  696. Allow user space to create what appear to be multiple instances
  697. of the network stack.
  698. endif # NAMESPACES
  699. config SCHED_AUTOGROUP
  700. bool "Automatic process group scheduling"
  701. select EVENTFD
  702. select CGROUPS
  703. select CGROUP_SCHED
  704. select FAIR_GROUP_SCHED
  705. help
  706. This option optimizes the scheduler for common desktop workloads by
  707. automatically creating and populating task groups. This separation
  708. of workloads isolates aggressive CPU burners (like build jobs) from
  709. desktop applications. Task group autogeneration is currently based
  710. upon task session.
  711. config MM_OWNER
  712. bool
  713. config SYSFS_DEPRECATED
  714. bool "Enable deprecated sysfs features to support old userspace tools"
  715. depends on SYSFS
  716. default n
  717. help
  718. This option adds code that switches the layout of the "block" class
  719. devices, to not show up in /sys/class/block/, but only in
  720. /sys/block/.
  721. This switch is only active when the sysfs.deprecated=1 boot option is
  722. passed or the SYSFS_DEPRECATED_V2 option is set.
  723. This option allows new kernels to run on old distributions and tools,
  724. which might get confused by /sys/class/block/. Since 2007/2008 all
  725. major distributions and tools handle this just fine.
  726. Recent distributions and userspace tools after 2009/2010 depend on
  727. the existence of /sys/class/block/, and will not work with this
  728. option enabled.
  729. Only if you are using a new kernel on an old distribution, you might
  730. need to say Y here.
  731. config SYSFS_DEPRECATED_V2
  732. bool "Enable deprecated sysfs features by default"
  733. default n
  734. depends on SYSFS
  735. depends on SYSFS_DEPRECATED
  736. help
  737. Enable deprecated sysfs by default.
  738. See the CONFIG_SYSFS_DEPRECATED option for more details about this
  739. option.
  740. Only if you are using a new kernel on an old distribution, you might
  741. need to say Y here. Even then, odds are you would not need it
  742. enabled, you can always pass the boot option if absolutely necessary.
  743. config RELAY
  744. bool "Kernel->user space relay support (formerly relayfs)"
  745. help
  746. This option enables support for relay interface support in
  747. certain file systems (such as debugfs).
  748. It is designed to provide an efficient mechanism for tools and
  749. facilities to relay large amounts of data from kernel space to
  750. user space.
  751. If unsure, say N.
  752. config BLK_DEV_INITRD
  753. bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
  754. depends on BROKEN || !FRV
  755. help
  756. The initial RAM filesystem is a ramfs which is loaded by the
  757. boot loader (loadlin or lilo) and that is mounted as root
  758. before the normal boot procedure. It is typically used to
  759. load modules needed to mount the "real" root file system,
  760. etc. See <file:Documentation/initrd.txt> for details.
  761. If RAM disk support (BLK_DEV_RAM) is also included, this
  762. also enables initial RAM disk (initrd) support and adds
  763. 15 Kbytes (more on some other architectures) to the kernel size.
  764. If unsure say Y.
  765. if BLK_DEV_INITRD
  766. source "usr/Kconfig"
  767. endif
  768. config CC_OPTIMIZE_FOR_SIZE
  769. bool "Optimize for size"
  770. help
  771. Enabling this option will pass "-Os" instead of "-O2" to gcc
  772. resulting in a smaller kernel.
  773. If unsure, say Y.
  774. config SYSCTL
  775. bool
  776. config ANON_INODES
  777. bool
  778. menuconfig EXPERT
  779. bool "Configure standard kernel features (expert users)"
  780. # Unhide debug options, to make the on-by-default options visible
  781. select DEBUG_KERNEL
  782. help
  783. This option allows certain base kernel options and settings
  784. to be disabled or tweaked. This is for specialized
  785. environments which can tolerate a "non-standard" kernel.
  786. Only use this if you really know what you are doing.
  787. config UID16
  788. bool "Enable 16-bit UID system calls" if EXPERT
  789. depends on ARM || BLACKFIN || CRIS || FRV || H8300 || X86_32 || M68K || (S390 && !64BIT) || SUPERH || SPARC32 || (SPARC64 && COMPAT) || UML || (X86_64 && IA32_EMULATION)
  790. default y
  791. help
  792. This enables the legacy 16-bit UID syscall wrappers.
  793. config SYSCTL_SYSCALL
  794. bool "Sysctl syscall support" if EXPERT
  795. depends on PROC_SYSCTL
  796. default n
  797. select SYSCTL
  798. ---help---
  799. sys_sysctl uses binary paths that have been found challenging
  800. to properly maintain and use. The interface in /proc/sys
  801. using paths with ascii names is now the primary path to this
  802. information.
  803. Almost nothing using the binary sysctl interface so if you are
  804. trying to save some space it is probably safe to disable this,
  805. making your kernel marginally smaller.
  806. If unsure say N here.
  807. config KALLSYMS
  808. bool "Load all symbols for debugging/ksymoops" if EXPERT
  809. default y
  810. help
  811. Say Y here to let the kernel print out symbolic crash information and
  812. symbolic stack backtraces. This increases the size of the kernel
  813. somewhat, as all symbols have to be loaded into the kernel image.
  814. config KALLSYMS_ALL
  815. bool "Include all symbols in kallsyms"
  816. depends on DEBUG_KERNEL && KALLSYMS
  817. help
  818. Normally kallsyms only contains the symbols of functions for nicer
  819. OOPS messages and backtraces (i.e., symbols from the text and inittext
  820. sections). This is sufficient for most cases. And only in very rare
  821. cases (e.g., when a debugger is used) all symbols are required (e.g.,
  822. names of variables from the data sections, etc).
  823. This option makes sure that all symbols are loaded into the kernel
  824. image (i.e., symbols from all sections) in cost of increased kernel
  825. size (depending on the kernel configuration, it may be 300KiB or
  826. something like this).
  827. Say N unless you really need all symbols.
  828. config HOTPLUG
  829. bool "Support for hot-pluggable devices" if EXPERT
  830. default y
  831. help
  832. This option is provided for the case where no hotplug or uevent
  833. capabilities is wanted by the kernel. You should only consider
  834. disabling this option for embedded systems that do not use modules, a
  835. dynamic /dev tree, or dynamic device discovery. Just say Y.
  836. config PRINTK
  837. default y
  838. bool "Enable support for printk" if EXPERT
  839. help
  840. This option enables normal printk support. Removing it
  841. eliminates most of the message strings from the kernel image
  842. and makes the kernel more or less silent. As this makes it
  843. very difficult to diagnose system problems, saying N here is
  844. strongly discouraged.
  845. config BUG
  846. bool "BUG() support" if EXPERT
  847. default y
  848. help
  849. Disabling this option eliminates support for BUG and WARN, reducing
  850. the size of your kernel image and potentially quietly ignoring
  851. numerous fatal conditions. You should only consider disabling this
  852. option for embedded systems with no facilities for reporting errors.
  853. Just say Y.
  854. config ELF_CORE
  855. default y
  856. bool "Enable ELF core dumps" if EXPERT
  857. help
  858. Enable support for generating core dumps. Disabling saves about 4k.
  859. config PCSPKR_PLATFORM
  860. bool "Enable PC-Speaker support" if EXPERT
  861. depends on HAVE_PCSPKR_PLATFORM
  862. select I8253_LOCK
  863. default y
  864. help
  865. This option allows to disable the internal PC-Speaker
  866. support, saving some memory.
  867. config HAVE_PCSPKR_PLATFORM
  868. bool
  869. config BASE_FULL
  870. default y
  871. bool "Enable full-sized data structures for core" if EXPERT
  872. help
  873. Disabling this option reduces the size of miscellaneous core
  874. kernel data structures. This saves memory on small machines,
  875. but may reduce performance.
  876. config FUTEX
  877. bool "Enable futex support" if EXPERT
  878. default y
  879. select RT_MUTEXES
  880. help
  881. Disabling this option will cause the kernel to be built without
  882. support for "fast userspace mutexes". The resulting kernel may not
  883. run glibc-based applications correctly.
  884. config EPOLL
  885. bool "Enable eventpoll support" if EXPERT
  886. default y
  887. select ANON_INODES
  888. help
  889. Disabling this option will cause the kernel to be built without
  890. support for epoll family of system calls.
  891. config SIGNALFD
  892. bool "Enable signalfd() system call" if EXPERT
  893. select ANON_INODES
  894. default y
  895. help
  896. Enable the signalfd() system call that allows to receive signals
  897. on a file descriptor.
  898. If unsure, say Y.
  899. config TIMERFD
  900. bool "Enable timerfd() system call" if EXPERT
  901. select ANON_INODES
  902. default y
  903. help
  904. Enable the timerfd() system call that allows to receive timer
  905. events on a file descriptor.
  906. If unsure, say Y.
  907. config EVENTFD
  908. bool "Enable eventfd() system call" if EXPERT
  909. select ANON_INODES
  910. default y
  911. help
  912. Enable the eventfd() system call that allows to receive both
  913. kernel notification (ie. KAIO) or userspace notifications.
  914. If unsure, say Y.
  915. config SHMEM
  916. bool "Use full shmem filesystem" if EXPERT
  917. default y
  918. depends on MMU
  919. help
  920. The shmem is an internal filesystem used to manage shared memory.
  921. It is backed by swap and manages resource limits. It is also exported
  922. to userspace as tmpfs if TMPFS is enabled. Disabling this
  923. option replaces shmem and tmpfs with the much simpler ramfs code,
  924. which may be appropriate on small systems without swap.
  925. config AIO
  926. bool "Enable AIO support" if EXPERT
  927. default y
  928. help
  929. This option enables POSIX asynchronous I/O which may by used
  930. by some high performance threaded applications. Disabling
  931. this option saves about 7k.
  932. config EMBEDDED
  933. bool "Embedded system"
  934. select EXPERT
  935. help
  936. This option should be enabled if compiling the kernel for
  937. an embedded system so certain expert options are available
  938. for configuration.
  939. config HAVE_PERF_EVENTS
  940. bool
  941. help
  942. See tools/perf/design.txt for details.
  943. config PERF_USE_VMALLOC
  944. bool
  945. help
  946. See tools/perf/design.txt for details
  947. menu "Kernel Performance Events And Counters"
  948. config PERF_EVENTS
  949. bool "Kernel performance events and counters"
  950. default y if (PROFILING || PERF_COUNTERS)
  951. depends on HAVE_PERF_EVENTS
  952. select ANON_INODES
  953. select IRQ_WORK
  954. help
  955. Enable kernel support for various performance events provided
  956. by software and hardware.
  957. Software events are supported either built-in or via the
  958. use of generic tracepoints.
  959. Most modern CPUs support performance events via performance
  960. counter registers. These registers count the number of certain
  961. types of hw events: such as instructions executed, cachemisses
  962. suffered, or branches mis-predicted - without slowing down the
  963. kernel or applications. These registers can also trigger interrupts
  964. when a threshold number of events have passed - and can thus be
  965. used to profile the code that runs on that CPU.
  966. The Linux Performance Event subsystem provides an abstraction of
  967. these software and hardware event capabilities, available via a
  968. system call and used by the "perf" utility in tools/perf/. It
  969. provides per task and per CPU counters, and it provides event
  970. capabilities on top of those.
  971. Say Y if unsure.
  972. config PERF_COUNTERS
  973. bool "Kernel performance counters (old config option)"
  974. depends on HAVE_PERF_EVENTS
  975. help
  976. This config has been obsoleted by the PERF_EVENTS
  977. config option - please see that one for details.
  978. It has no effect on the kernel whether you enable
  979. it or not, it is a compatibility placeholder.
  980. Say N if unsure.
  981. config DEBUG_PERF_USE_VMALLOC
  982. default n
  983. bool "Debug: use vmalloc to back perf mmap() buffers"
  984. depends on PERF_EVENTS && DEBUG_KERNEL
  985. select PERF_USE_VMALLOC
  986. help
  987. Use vmalloc memory to back perf mmap() buffers.
  988. Mostly useful for debugging the vmalloc code on platforms
  989. that don't require it.
  990. Say N if unsure.
  991. endmenu
  992. config VM_EVENT_COUNTERS
  993. default y
  994. bool "Enable VM event counters for /proc/vmstat" if EXPERT
  995. help
  996. VM event counters are needed for event counts to be shown.
  997. This option allows the disabling of the VM event counters
  998. on EXPERT systems. /proc/vmstat will only show page counts
  999. if VM event counters are disabled.
  1000. config PCI_QUIRKS
  1001. default y
  1002. bool "Enable PCI quirk workarounds" if EXPERT
  1003. depends on PCI
  1004. help
  1005. This enables workarounds for various PCI chipset
  1006. bugs/quirks. Disable this only if your target machine is
  1007. unaffected by PCI quirks.
  1008. config SLUB_DEBUG
  1009. default y
  1010. bool "Enable SLUB debugging support" if EXPERT
  1011. depends on SLUB && SYSFS
  1012. help
  1013. SLUB has extensive debug support features. Disabling these can
  1014. result in significant savings in code size. This also disables
  1015. SLUB sysfs support. /sys/slab will not exist and there will be
  1016. no support for cache validation etc.
  1017. config COMPAT_BRK
  1018. bool "Disable heap randomization"
  1019. default y
  1020. help
  1021. Randomizing heap placement makes heap exploits harder, but it
  1022. also breaks ancient binaries (including anything libc5 based).
  1023. This option changes the bootup default to heap randomization
  1024. disabled, and can be overridden at runtime by setting
  1025. /proc/sys/kernel/randomize_va_space to 2.
  1026. On non-ancient distros (post-2000 ones) N is usually a safe choice.
  1027. choice
  1028. prompt "Choose SLAB allocator"
  1029. default SLUB
  1030. help
  1031. This option allows to select a slab allocator.
  1032. config SLAB
  1033. bool "SLAB"
  1034. help
  1035. The regular slab allocator that is established and known to work
  1036. well in all environments. It organizes cache hot objects in
  1037. per cpu and per node queues.
  1038. config SLUB
  1039. bool "SLUB (Unqueued Allocator)"
  1040. help
  1041. SLUB is a slab allocator that minimizes cache line usage
  1042. instead of managing queues of cached objects (SLAB approach).
  1043. Per cpu caching is realized using slabs of objects instead
  1044. of queues of objects. SLUB can use memory efficiently
  1045. and has enhanced diagnostics. SLUB is the default choice for
  1046. a slab allocator.
  1047. config SLOB
  1048. depends on EXPERT
  1049. bool "SLOB (Simple Allocator)"
  1050. help
  1051. SLOB replaces the stock allocator with a drastically simpler
  1052. allocator. SLOB is generally more space efficient but
  1053. does not perform as well on large systems.
  1054. endchoice
  1055. config MMAP_ALLOW_UNINITIALIZED
  1056. bool "Allow mmapped anonymous memory to be uninitialized"
  1057. depends on EXPERT && !MMU
  1058. default n
  1059. help
  1060. Normally, and according to the Linux spec, anonymous memory obtained
  1061. from mmap() has it's contents cleared before it is passed to
  1062. userspace. Enabling this config option allows you to request that
  1063. mmap() skip that if it is given an MAP_UNINITIALIZED flag, thus
  1064. providing a huge performance boost. If this option is not enabled,
  1065. then the flag will be ignored.
  1066. This is taken advantage of by uClibc's malloc(), and also by
  1067. ELF-FDPIC binfmt's brk and stack allocator.
  1068. Because of the obvious security issues, this option should only be
  1069. enabled on embedded devices where you control what is run in
  1070. userspace. Since that isn't generally a problem on no-MMU systems,
  1071. it is normally safe to say Y here.
  1072. See Documentation/nommu-mmap.txt for more information.
  1073. config PROFILING
  1074. bool "Profiling support"
  1075. help
  1076. Say Y here to enable the extended profiling support mechanisms used
  1077. by profilers such as OProfile.
  1078. #
  1079. # Place an empty function call at each tracepoint site. Can be
  1080. # dynamically changed for a probe function.
  1081. #
  1082. config TRACEPOINTS
  1083. bool
  1084. source "arch/Kconfig"
  1085. endmenu # General setup
  1086. config HAVE_GENERIC_DMA_COHERENT
  1087. bool
  1088. default n
  1089. config SLABINFO
  1090. bool
  1091. depends on PROC_FS
  1092. depends on SLAB || SLUB_DEBUG
  1093. default y
  1094. config RT_MUTEXES
  1095. boolean
  1096. config BASE_SMALL
  1097. int
  1098. default 0 if BASE_FULL
  1099. default 1 if !BASE_FULL
  1100. menuconfig MODULES
  1101. bool "Enable loadable module support"
  1102. help
  1103. Kernel modules are small pieces of compiled code which can
  1104. be inserted in the running kernel, rather than being
  1105. permanently built into the kernel. You use the "modprobe"
  1106. tool to add (and sometimes remove) them. If you say Y here,
  1107. many parts of the kernel can be built as modules (by
  1108. answering M instead of Y where indicated): this is most
  1109. useful for infrequently used options which are not required
  1110. for booting. For more information, see the man pages for
  1111. modprobe, lsmod, modinfo, insmod and rmmod.
  1112. If you say Y here, you will need to run "make
  1113. modules_install" to put the modules under /lib/modules/
  1114. where modprobe can find them (you may need to be root to do
  1115. this).
  1116. If unsure, say Y.
  1117. if MODULES
  1118. config MODULE_FORCE_LOAD
  1119. bool "Forced module loading"
  1120. default n
  1121. help
  1122. Allow loading of modules without version information (ie. modprobe
  1123. --force). Forced module loading sets the 'F' (forced) taint flag and
  1124. is usually a really bad idea.
  1125. config MODULE_UNLOAD
  1126. bool "Module unloading"
  1127. help
  1128. Without this option you will not be able to unload any
  1129. modules (note that some modules may not be unloadable
  1130. anyway), which makes your kernel smaller, faster
  1131. and simpler. If unsure, say Y.
  1132. config MODULE_FORCE_UNLOAD
  1133. bool "Forced module unloading"
  1134. depends on MODULE_UNLOAD && EXPERIMENTAL
  1135. help
  1136. This option allows you to force a module to unload, even if the
  1137. kernel believes it is unsafe: the kernel will remove the module
  1138. without waiting for anyone to stop using it (using the -f option to
  1139. rmmod). This is mainly for kernel developers and desperate users.
  1140. If unsure, say N.
  1141. config MODVERSIONS
  1142. bool "Module versioning support"
  1143. help
  1144. Usually, you have to use modules compiled with your kernel.
  1145. Saying Y here makes it sometimes possible to use modules
  1146. compiled for different kernels, by adding enough information
  1147. to the modules to (hopefully) spot any changes which would
  1148. make them incompatible with the kernel you are running. If
  1149. unsure, say N.
  1150. config MODULE_SRCVERSION_ALL
  1151. bool "Source checksum for all modules"
  1152. help
  1153. Modules which contain a MODULE_VERSION get an extra "srcversion"
  1154. field inserted into their modinfo section, which contains a
  1155. sum of the source files which made it. This helps maintainers
  1156. see exactly which source was used to build a module (since
  1157. others sometimes change the module source without updating
  1158. the version). With this option, such a "srcversion" field
  1159. will be created for all modules. If unsure, say N.
  1160. endif # MODULES
  1161. config INIT_ALL_POSSIBLE
  1162. bool
  1163. help
  1164. Back when each arch used to define their own cpu_online_map and
  1165. cpu_possible_map, some of them chose to initialize cpu_possible_map
  1166. with all 1s, and others with all 0s. When they were centralised,
  1167. it was better to provide this option than to break all the archs
  1168. and have several arch maintainers pursuing me down dark alleys.
  1169. config STOP_MACHINE
  1170. bool
  1171. default y
  1172. depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
  1173. help
  1174. Need stop_machine() primitive.
  1175. source "block/Kconfig"
  1176. config PREEMPT_NOTIFIERS
  1177. bool
  1178. config PADATA
  1179. depends on SMP
  1180. bool
  1181. source "kernel/Kconfig.locks"