aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2008-03-25 17:35:32 -0400
committerPaul Mackerras <paulus@samba.org>2008-04-06 23:49:22 -0400
commit6ccf61f94fbac3e8715f2f938b27cdb3836c1f8c (patch)
tree4871071c7d0ff07059652c71e4c70a8753b5b3da
parentc5d5d94aa54ba1f7691b79336b18804d4b0adf48 (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/Kconfig23
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
211source kernel/Kconfig.preempt 211source kernel/Kconfig.preempt
212source "fs/Kconfig.binfmt" 212source "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
217config FORCE_MAX_ZONEORDER 214config 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
223config HUGETLB_PAGE_SIZE_VARIABLE 234config HUGETLB_PAGE_SIZE_VARIABLE
224 bool 235 bool