powerpc/numa: Make memory reserve code more robust
authorJon Tollefson <kniht@us.ibm.com>
Thu, 16 Oct 2008 18:59:43 +0000 (18:59 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 21 Oct 2008 04:17:48 +0000 (15:17 +1100)
commite81703724a966120ace6504c993bda9e084cbf3e
tree0b0914346bc745cab9e59b9edbe95aa764aa6959
parenta5598ca0d49821912a5053c05f07fd650671eb6d
powerpc/numa: Make memory reserve code more robust

Adjust amount to reserve based on previous nodes for reserves spanning
multiple nodes. Check if the node active range is empty before attempting
to pass the reserve to bootmem.  In practice the range shouldn't be empty,
but to be sure we check.

Signed-off-by: Jon Tollefson <kniht@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c