]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add gpages reservation code for 64-bit FSL BOOKE
authorBecky Bruce <beckyb@kernel.crashing.org>
Mon, 10 Oct 2011 10:50:43 +0000 (10:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 7 Dec 2011 05:26:23 +0000 (16:26 +1100)
commitae3187829b43e5db42f04aee6f118491f0914f59
treed15def6bf2df312dd39810f18d2837fc9eb823bb
parentd2b969dd0ebc9b6528e0acfc5eb9f6251302224f
powerpc: Add gpages reservation code for 64-bit FSL BOOKE

For 64-bit FSL_BOOKE implementations, gigantic pages need to be
reserved at boot time by the memblock code based on the command line.
This adds the call that handles the reservation, and fixes some code
comments.

It also removes the previous pr_err when reserve_hugetlb_gpages
is called on a system without hugetlb enabled - the way the code is
structured, the call is unconditional and the resulting error message
spurious and confusing.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/hugetlb.h
arch/powerpc/kernel/setup_64.c
arch/powerpc/mm/hugetlbpage.c