diff options
author | Steve Capper <steve.capper@linaro.org> | 2013-04-25 10:19:21 -0400 |
---|---|---|
committer | Steve Capper <steve.capper@linaro.org> | 2013-06-14 04:52:40 -0400 |
commit | d03bb1455f3a2804539ed27047fd3b073fdeb3e0 (patch) | |
tree | 68066ff606f7cf2c19d2d314cb0d4500f5f4213f /arch/arm64/Kconfig | |
parent | 084bd29810a5689e423d2f085255a3200a03a06e (diff) |
ARM64: mm: Raise MAX_ORDER for 64KB pages and THP.
The buddy allocator has a default MAX_ORDER of 11, which is too
low to allocate enough memory for 512MB Transparent HugePages if
our base page size is 64KB.
This patch introduces MAX_ZONE_ORDER and sets it to 14 when 64KB
pages are used in conjuction with THP, otherwise the default value
of 11 is used.
Signed-off-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/Kconfig')
-rw-r--r-- | arch/arm64/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index cd6eca84a21c..10607d63b945 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig | |||
@@ -191,6 +191,11 @@ config ARCH_WANT_HUGE_PMD_SHARE | |||
191 | 191 | ||
192 | source "mm/Kconfig" | 192 | source "mm/Kconfig" |
193 | 193 | ||
194 | config FORCE_MAX_ZONEORDER | ||
195 | int | ||
196 | default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE) | ||
197 | default "11" | ||
198 | |||
194 | endmenu | 199 | endmenu |
195 | 200 | ||
196 | menu "Boot options" | 201 | menu "Boot options" |