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)
committerSteve Capper <steve.capper@linaro.org>
Wed, 5 Mar 2014 07:03:22 +0000 (15:03 +0800)
commitbc54bbc17d6fa0907c5d239aa89a09a03a77d7a4
treece78608d38a5a304207efed1013a3b109c46fe65
parent7f7f783676eaaffde97ca5467206e6cb8f6ecd1a
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