diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
commit | f541ae326fa120fa5c57433e4d9a133df212ce41 (patch) | |
tree | bdbd94ec72cfc601118051cb35e8617d55510177 /init/Kconfig | |
parent | e255357764f92afcafafbd4879b222b8c752065a (diff) | |
parent | 0221c81b1b8eb0cbb6b30a0ced52ead32d2b4e4c (diff) |
Merge branch 'linus' into perfcounters/core-v2
Merge reason: we have gathered quite a few conflicts, need to merge upstream
Conflicts:
arch/powerpc/kernel/Makefile
arch/x86/ia32/ia32entry.S
arch/x86/include/asm/hardirq.h
arch/x86/include/asm/unistd_32.h
arch/x86/include/asm/unistd_64.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/irq.c
arch/x86/kernel/syscall_table_32.S
arch/x86/mm/iomap_32.c
include/linux/sched.h
kernel/Makefile
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'init/Kconfig')
-rw-r--r-- | init/Kconfig | 115 |
1 files changed, 94 insertions, 21 deletions
diff --git a/init/Kconfig b/init/Kconfig index 5a3ad5c20e2..38a2ecd47c3 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -101,6 +101,66 @@ config LOCALVERSION_AUTO | |||
101 | 101 | ||
102 | which is done within the script "scripts/setlocalversion".) | 102 | which is done within the script "scripts/setlocalversion".) |
103 | 103 | ||
104 | config HAVE_KERNEL_GZIP | ||
105 | bool | ||
106 | |||
107 | config HAVE_KERNEL_BZIP2 | ||
108 | bool | ||
109 | |||
110 | config HAVE_KERNEL_LZMA | ||
111 | bool | ||
112 | |||
113 | choice | ||
114 | prompt "Kernel compression mode" | ||
115 | default KERNEL_GZIP | ||
116 | depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA | ||
117 | help | ||
118 | The linux kernel is a kind of self-extracting executable. | ||
119 | Several compression algorithms are available, which differ | ||
120 | in efficiency, compression and decompression speed. | ||
121 | Compression speed is only relevant when building a kernel. | ||
122 | Decompression speed is relevant at each boot. | ||
123 | |||
124 | If you have any problems with bzip2 or lzma compressed | ||
125 | kernels, mail me (Alain Knaff) <alain@knaff.lu>. (An older | ||
126 | version of this functionality (bzip2 only), for 2.4, was | ||
127 | supplied by Christian Ludwig) | ||
128 | |||
129 | High compression options are mostly useful for users, who | ||
130 | are low on disk space (embedded systems), but for whom ram | ||
131 | size matters less. | ||
132 | |||
133 | If in doubt, select 'gzip' | ||
134 | |||
135 | config KERNEL_GZIP | ||
136 | bool "Gzip" | ||
137 | depends on HAVE_KERNEL_GZIP | ||
138 | help | ||
139 | The old and tried gzip compression. Its compression ratio is | ||
140 | the poorest among the 3 choices; however its speed (both | ||
141 | compression and decompression) is the fastest. | ||
142 | |||
143 | config KERNEL_BZIP2 | ||
144 | bool "Bzip2" | ||
145 | depends on HAVE_KERNEL_BZIP2 | ||
146 | help | ||
147 | Its compression ratio and speed is intermediate. | ||
148 | Decompression speed is slowest among the three. The kernel | ||
149 | size is about 10% smaller with bzip2, in comparison to gzip. | ||
150 | Bzip2 uses a large amount of memory. For modern kernels you | ||
151 | will need at least 8MB RAM or more for booting. | ||
152 | |||
153 | config KERNEL_LZMA | ||
154 | bool "LZMA" | ||
155 | depends on HAVE_KERNEL_LZMA | ||
156 | help | ||
157 | The most recent compression algorithm. | ||
158 | Its ratio is best, decompression speed is between the other | ||
159 | two. Compression is slowest. The kernel size is about 33% | ||
160 | smaller with LZMA in comparison to gzip. | ||
161 | |||
162 | endchoice | ||
163 | |||
104 | config SWAP | 164 | config SWAP |
105 | bool "Support for paging of anonymous memory (swap)" | 165 | bool "Support for paging of anonymous memory (swap)" |
106 | depends on MMU && BLOCK | 166 | depends on MMU && BLOCK |
@@ -471,7 +531,7 @@ config CGROUP_DEVICE | |||
471 | 531 | ||
472 | config CPUSETS | 532 | config CPUSETS |
473 | bool "Cpuset support" | 533 | bool "Cpuset support" |
474 | depends on SMP && CGROUPS | 534 | depends on CGROUPS |
475 | help | 535 | help |
476 | This option will let you create and manage CPUSETs which | 536 | This option will let you create and manage CPUSETs which |
477 | allow dynamically partitioning a system into sets of CPUs and | 537 | allow dynamically partitioning a system into sets of CPUs and |
@@ -505,7 +565,7 @@ config CGROUP_MEM_RES_CTLR | |||
505 | select MM_OWNER | 565 | select MM_OWNER |
506 | help | 566 | help |
507 | Provides a memory resource controller that manages both anonymous | 567 | Provides a memory resource controller that manages both anonymous |
508 | memory and page cache. (See Documentation/controllers/memory.txt) | 568 | memory and page cache. (See Documentation/cgroups/memory.txt) |
509 | 569 | ||
510 | Note that setting this option increases fixed memory overhead | 570 | Note that setting this option increases fixed memory overhead |
511 | associated with each page of memory in the system. By this, | 571 | associated with each page of memory in the system. By this, |
@@ -537,6 +597,8 @@ config CGROUP_MEM_RES_CTLR_SWAP | |||
537 | is disabled by boot option, this will be automatically disabled and | 597 | is disabled by boot option, this will be automatically disabled and |
538 | there will be no overhead from this. Even when you set this config=y, | 598 | there will be no overhead from this. Even when you set this config=y, |
539 | if boot option "noswapaccount" is set, swap will not be accounted. | 599 | if boot option "noswapaccount" is set, swap will not be accounted. |
600 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page | ||
601 | size is 4096bytes, 512k per 1Gbytes of swap. | ||
540 | 602 | ||
541 | endif # CGROUPS | 603 | endif # CGROUPS |
542 | 604 | ||
@@ -627,7 +689,7 @@ config PID_NS | |||
627 | depends on NAMESPACES && EXPERIMENTAL | 689 | depends on NAMESPACES && EXPERIMENTAL |
628 | help | 690 | help |
629 | Support process id namespaces. This allows having multiple | 691 | Support process id namespaces. This allows having multiple |
630 | process with the same pid as long as they are in different | 692 | processes with the same pid as long as they are in different |
631 | pid namespaces. This is a building block of containers. | 693 | pid namespaces. This is a building block of containers. |
632 | 694 | ||
633 | Unless you want to work with an experimental feature | 695 | Unless you want to work with an experimental feature |
@@ -675,6 +737,9 @@ config CC_OPTIMIZE_FOR_SIZE | |||
675 | config SYSCTL | 737 | config SYSCTL |
676 | bool | 738 | bool |
677 | 739 | ||
740 | config ANON_INODES | ||
741 | bool | ||
742 | |||
678 | menuconfig EMBEDDED | 743 | menuconfig EMBEDDED |
679 | bool "Configure standard kernel features (for small systems)" | 744 | bool "Configure standard kernel features (for small systems)" |
680 | help | 745 | help |
@@ -780,18 +845,6 @@ config PCSPKR_PLATFORM | |||
780 | This option allows to disable the internal PC-Speaker | 845 | This option allows to disable the internal PC-Speaker |
781 | support, saving some memory. | 846 | support, saving some memory. |
782 | 847 | ||
783 | config COMPAT_BRK | ||
784 | bool "Disable heap randomization" | ||
785 | default y | ||
786 | help | ||
787 | Randomizing heap placement makes heap exploits harder, but it | ||
788 | also breaks ancient binaries (including anything libc5 based). | ||
789 | This option changes the bootup default to heap randomization | ||
790 | disabled, and can be overriden runtime by setting | ||
791 | /proc/sys/kernel/randomize_va_space to 2. | ||
792 | |||
793 | On non-ancient distros (post-2000 ones) N is usually a safe choice. | ||
794 | |||
795 | config BASE_FULL | 848 | config BASE_FULL |
796 | default y | 849 | default y |
797 | bool "Enable full-sized data structures for core" if EMBEDDED | 850 | bool "Enable full-sized data structures for core" if EMBEDDED |
@@ -809,9 +862,6 @@ config FUTEX | |||
809 | support for "fast userspace mutexes". The resulting kernel may not | 862 | support for "fast userspace mutexes". The resulting kernel may not |
810 | run glibc-based applications correctly. | 863 | run glibc-based applications correctly. |
811 | 864 | ||
812 | config ANON_INODES | ||
813 | bool | ||
814 | |||
815 | config EPOLL | 865 | config EPOLL |
816 | bool "Enable eventpoll support" if EMBEDDED | 866 | bool "Enable eventpoll support" if EMBEDDED |
817 | default y | 867 | default y |
@@ -927,6 +977,18 @@ config SLUB_DEBUG | |||
927 | SLUB sysfs support. /sys/slab will not exist and there will be | 977 | SLUB sysfs support. /sys/slab will not exist and there will be |
928 | no support for cache validation etc. | 978 | no support for cache validation etc. |
929 | 979 | ||
980 | config COMPAT_BRK | ||
981 | bool "Disable heap randomization" | ||
982 | default y | ||
983 | help | ||
984 | Randomizing heap placement makes heap exploits harder, but it | ||
985 | also breaks ancient binaries (including anything libc5 based). | ||
986 | This option changes the bootup default to heap randomization | ||
987 | disabled, and can be overridden at runtime by setting | ||
988 | /proc/sys/kernel/randomize_va_space to 2. | ||
989 | |||
990 | On non-ancient distros (post-2000 ones) N is usually a safe choice. | ||
991 | |||
930 | choice | 992 | choice |
931 | prompt "Choose SLAB allocator" | 993 | prompt "Choose SLAB allocator" |
932 | default SLUB | 994 | default SLUB |
@@ -975,13 +1037,25 @@ config TRACEPOINTS | |||
975 | 1037 | ||
976 | config MARKERS | 1038 | config MARKERS |
977 | bool "Activate markers" | 1039 | bool "Activate markers" |
978 | depends on TRACEPOINTS | 1040 | select TRACEPOINTS |
979 | help | 1041 | help |
980 | Place an empty function call at each marker site. Can be | 1042 | Place an empty function call at each marker site. Can be |
981 | dynamically changed for a probe function. | 1043 | dynamically changed for a probe function. |
982 | 1044 | ||
983 | source "arch/Kconfig" | 1045 | source "arch/Kconfig" |
984 | 1046 | ||
1047 | config SLOW_WORK | ||
1048 | default n | ||
1049 | bool "Enable slow work thread pool" | ||
1050 | help | ||
1051 | The slow work thread pool provides a number of dynamically allocated | ||
1052 | threads that can be used by the kernel to perform operations that | ||
1053 | take a relatively long time. | ||
1054 | |||
1055 | An example of this would be CacheFiles doing a path lookup followed | ||
1056 | by a series of mkdirs and a create call, all of which have to touch | ||
1057 | disk. | ||
1058 | |||
985 | endmenu # General setup | 1059 | endmenu # General setup |
986 | 1060 | ||
987 | config HAVE_GENERIC_DMA_COHERENT | 1061 | config HAVE_GENERIC_DMA_COHERENT |
@@ -996,7 +1070,6 @@ config SLABINFO | |||
996 | 1070 | ||
997 | config RT_MUTEXES | 1071 | config RT_MUTEXES |
998 | boolean | 1072 | boolean |
999 | select PLIST | ||
1000 | 1073 | ||
1001 | config BASE_SMALL | 1074 | config BASE_SMALL |
1002 | int | 1075 | int |
@@ -1081,7 +1154,7 @@ config INIT_ALL_POSSIBLE | |||
1081 | cpu_possible_map, some of them chose to initialize cpu_possible_map | 1154 | cpu_possible_map, some of them chose to initialize cpu_possible_map |
1082 | with all 1s, and others with all 0s. When they were centralised, | 1155 | with all 1s, and others with all 0s. When they were centralised, |
1083 | it was better to provide this option than to break all the archs | 1156 | it was better to provide this option than to break all the archs |
1084 | and have several arch maintainers persuing me down dark alleys. | 1157 | and have several arch maintainers pursuing me down dark alleys. |
1085 | 1158 | ||
1086 | config STOP_MACHINE | 1159 | config STOP_MACHINE |
1087 | bool | 1160 | bool |