ARM64: mm: Raise MAX_ORDER for 64KB pages and THP.
authorSteve Capper <steve.capper@linaro.org>
Thu, 25 Apr 2013 14:19:21 +0000 (15:19 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 18:59:49 +0000 (19:59 +0100)
commit00d9acb13773b654361ea92da5e915e2804e544f
treeea3f4bc5ed27d4b44fabcb40718b0786af070e16
parent3b5a3a6a3716d107d0c5854eab70a4eac40534a9
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>
arch/arm64/Kconfig