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>
Fri, 9 May 2014 11:02:47 +0000 (12:02 +0100)
commit74c50894f33d4bf349499e8f6ac75db3dd1ff3ff
treec6ee13dd0d967493031bad688117ec0eaa9e0984
parent597173f474cb5a28b4c9a1dbf865ac002c7e5010
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