powerpc: Add memory_hotplug_max()
authorNishanth Aravamudan <nacc@us.ibm.com>
Tue, 26 Oct 2010 17:35:12 +0000 (17:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 29 Nov 2010 04:48:21 +0000 (15:48 +1100)
commitcd34206e949b66d3c5fa3e4d2905aa4af29d1b85
tree361054eb08328d8d9f5ceaba4d8a90ba52244c58
parentf6aedd8606ae673f8e1f4d972fc86c451fbc8ba7
powerpc: Add memory_hotplug_max()

Add a function to get the maximum address that can be hotplug added.
This is needed to calculate the size of the tce table needed to cover
all memory in 1:1 mode.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/mmzone.h
arch/powerpc/mm/numa.c