diff options
-rw-r--r-- | arch/powerpc/Kconfig | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index f43d82dbc3..625342e1a7 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -211,14 +211,25 @@ source kernel/Kconfig.hz | |||
211 | source kernel/Kconfig.preempt | 211 | source kernel/Kconfig.preempt |
212 | source "fs/Kconfig.binfmt" | 212 | source "fs/Kconfig.binfmt" |
213 | 213 | ||
214 | # We optimistically allocate largepages from the VM, so make the limit | ||
215 | # large enough (16MB). This badly named config option is actually | ||
216 | # max order + 1 | ||
217 | config FORCE_MAX_ZONEORDER | 214 | config FORCE_MAX_ZONEORDER |
218 | int | 215 | int "Maximum zone order" |
219 | depends on PPC64 | ||
220 | default "9" if PPC_64K_PAGES | 216 | default "9" if PPC_64K_PAGES |
221 | default "13" | 217 | default "13" if PPC64 |
218 | default "11" | ||
219 | help | ||
220 | The kernel memory allocator divides physically contiguous memory | ||
221 | blocks into "zones", where each zone is a power of two number of | ||
222 | pages. This option selects the largest power of two that the kernel | ||
223 | keeps in the memory allocator. If you need to allocate very large | ||
224 | blocks of physically contiguous memory, then you may need to | ||
225 | increase this value. | ||
226 | |||
227 | This config option is actually maximum order plus one. For example, | ||
228 | a value of 11 means that the largest free memory block is 2^10 pages. | ||
229 | |||
230 | The page size is not necessarily 4KB. For example, on 64-bit | ||
231 | systems, 64KB pages can be enabled via CONFIG_PPC_64K_PAGES. Keep | ||
232 | this in mind when choosing a value for this option. | ||
222 | 233 | ||
223 | config HUGETLB_PAGE_SIZE_VARIABLE | 234 | config HUGETLB_PAGE_SIZE_VARIABLE |
224 | bool | 235 | bool |