aboutsummaryrefslogtreecommitdiffstats
path: root/mm/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'mm/Kconfig')
-rw-r--r--mm/Kconfig35
1 files changed, 15 insertions, 20 deletions
diff --git a/mm/Kconfig b/mm/Kconfig
index edd300aca173..17b8947aa7da 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -67,7 +67,7 @@ config DISCONTIGMEM
67 67
68config SPARSEMEM 68config SPARSEMEM
69 def_bool y 69 def_bool y
70 depends on SPARSEMEM_MANUAL 70 depends on (!SELECT_MEMORY_MODEL && ARCH_SPARSEMEM_ENABLE) || SPARSEMEM_MANUAL
71 71
72config FLATMEM 72config FLATMEM
73 def_bool y 73 def_bool y
@@ -128,11 +128,8 @@ config SPARSEMEM_VMEMMAP
128config MEMORY_HOTPLUG 128config MEMORY_HOTPLUG
129 bool "Allow for memory hot-add" 129 bool "Allow for memory hot-add"
130 depends on SPARSEMEM || X86_64_ACPI_NUMA 130 depends on SPARSEMEM || X86_64_ACPI_NUMA
131 depends on HOTPLUG && !(HIBERNATION && !S390) && ARCH_ENABLE_MEMORY_HOTPLUG 131 depends on HOTPLUG && ARCH_ENABLE_MEMORY_HOTPLUG
132 depends on (IA64 || X86 || PPC64 || SUPERH || S390) 132 depends on (IA64 || X86 || PPC_BOOK3S_64 || SUPERH || S390)
133
134comment "Memory hotplug is currently incompatible with Software Suspend"
135 depends on SPARSEMEM && HOTPLUG && HIBERNATION && !S390
136 133
137config MEMORY_HOTPLUG_SPARSE 134config MEMORY_HOTPLUG_SPARSE
138 def_bool y 135 def_bool y
@@ -161,11 +158,13 @@ config PAGEFLAGS_EXTENDED
161# Default to 4 for wider testing, though 8 might be more appropriate. 158# Default to 4 for wider testing, though 8 might be more appropriate.
162# ARM's adjust_pte (unused if VIPT) depends on mm-wide page_table_lock. 159# ARM's adjust_pte (unused if VIPT) depends on mm-wide page_table_lock.
163# PA-RISC 7xxx's spinlock_t would enlarge struct page from 32 to 44 bytes. 160# PA-RISC 7xxx's spinlock_t would enlarge struct page from 32 to 44 bytes.
161# DEBUG_SPINLOCK and DEBUG_LOCK_ALLOC spinlock_t also enlarge struct page.
164# 162#
165config SPLIT_PTLOCK_CPUS 163config SPLIT_PTLOCK_CPUS
166 int 164 int
167 default "4096" if ARM && !CPU_CACHE_VIPT 165 default "999999" if ARM && !CPU_CACHE_VIPT
168 default "4096" if PARISC && !PA20 166 default "999999" if PARISC && !PA20
167 default "999999" if DEBUG_SPINLOCK || DEBUG_LOCK_ALLOC
169 default "4" 168 default "4"
170 169
171# 170#
@@ -203,14 +202,6 @@ config VIRT_TO_BUS
203 def_bool y 202 def_bool y
204 depends on !ARCH_NO_VIRT_TO_BUS 203 depends on !ARCH_NO_VIRT_TO_BUS
205 204
206config HAVE_MLOCK
207 bool
208 default y if MMU=y
209
210config HAVE_MLOCKED_PAGE_BIT
211 bool
212 default y if HAVE_MLOCK=y
213
214config MMU_NOTIFIER 205config MMU_NOTIFIER
215 bool 206 bool
216 207
@@ -221,13 +212,16 @@ config KSM
221 Enable Kernel Samepage Merging: KSM periodically scans those areas 212 Enable Kernel Samepage Merging: KSM periodically scans those areas
222 of an application's address space that an app has advised may be 213 of an application's address space that an app has advised may be
223 mergeable. When it finds pages of identical content, it replaces 214 mergeable. When it finds pages of identical content, it replaces
224 the many instances by a single resident page with that content, so 215 the many instances by a single page with that content, so
225 saving memory until one or another app needs to modify the content. 216 saving memory until one or another app needs to modify the content.
226 Recommended for use with KVM, or with other duplicative applications. 217 Recommended for use with KVM, or with other duplicative applications.
227 See Documentation/vm/ksm.txt for more information. 218 See Documentation/vm/ksm.txt for more information: KSM is inactive
219 until a program has madvised that an area is MADV_MERGEABLE, and
220 root has set /sys/kernel/mm/ksm/run to 1 (if CONFIG_SYSFS is set).
228 221
229config DEFAULT_MMAP_MIN_ADDR 222config DEFAULT_MMAP_MIN_ADDR
230 int "Low address space to protect from user allocation" 223 int "Low address space to protect from user allocation"
224 depends on MMU
231 default 4096 225 default 4096
232 help 226 help
233 This is the portion of low virtual memory which should be protected 227 This is the portion of low virtual memory which should be protected
@@ -258,8 +252,9 @@ config MEMORY_FAILURE
258 special hardware support and typically ECC memory. 252 special hardware support and typically ECC memory.
259 253
260config HWPOISON_INJECT 254config HWPOISON_INJECT
261 tristate "Poison pages injector" 255 tristate "HWPoison pages injector"
262 depends on MEMORY_FAILURE && DEBUG_KERNEL 256 depends on MEMORY_FAILURE && DEBUG_KERNEL && PROC_FS
257 select PROC_PAGE_MONITOR
263 258
264config NOMMU_INITIAL_TRIM_EXCESS 259config NOMMU_INITIAL_TRIM_EXCESS
265 int "Turn on mmap() excess space trimming before booting" 260 int "Turn on mmap() excess space trimming before booting"