diff options
author | Timur Tabi <timur@freescale.com> | 2008-03-25 17:35:32 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-06 23:49:22 -0400 |
commit | 6ccf61f94fbac3e8715f2f938b27cdb3836c1f8c (patch) | |
tree | 4871071c7d0ff07059652c71e4c70a8753b5b3da | |
parent | c5d5d94aa54ba1f7691b79336b18804d4b0adf48 (diff) |
[POWERPC] Enable CONFIG_FORCE_MAX_ZONEORDER for all PowerPC, and make selectable
This enables the FORCE_MAX_ZONEORDER Kconfig option for all PowerPC
systems. Previously, it was enabled only for 64-bit systems. We also
make the option selectable from the menu, so that the user can specify
different values. This is useful for 32-bit systems that need to
allocate more than 4MB of physically contiguous memory.
Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-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 f43d82dbc323..625342e1a733 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 |