powerpc: Use HAVE_MEMBLOCK_NODE_MAP
authorTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:08 +0000 (10:22 -0800)
committerTejun Heo <tj@kernel.org>
Thu, 8 Dec 2011 18:22:08 +0000 (10:22 -0800)
commit1d7cfe18ec2eb2d0480a9b29465af66b61291202
treea618245968fb20ef0d08a73ea65ee1f1721fcffe
parent7fb0bc3f06fdc3a35e41bcea7a15e53d2515362f
powerpc: Use HAVE_MEMBLOCK_NODE_MAP

powerpc doesn't access early_node_map[] directly and enabling
HAVE_MEMBLOCK_NODE_MAP is trivial - replacing add_active_range() calls
with memblock_set_node() and selecting HAVE_MEMBLOCK_NODE_MAP is
enough.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Yinghai Lu <yinghai@kernel.org>
arch/powerpc/Kconfig
arch/powerpc/mm/mem.c
arch/powerpc/mm/numa.c