]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix memory hotplug with sparse vmemmap
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Fri, 27 Sep 2013 15:18:09 +0000 (10:18 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 3 Oct 2013 07:21:38 +0000 (17:21 +1000)
commitac94273a5626fb23b607a78e3cfb800fc2c4c998
treef2518be51a9b38a51eff1b48402b1306341dfddb
parent29aa408d191c0c32a7d6e7003f58580492a53e13
powerpc: Fix memory hotplug with sparse vmemmap

Previous commit 1a0d732d30b... introduced a new config option
HAVE_BOOTMEM_INFO_NODE that ended up breaking memory hot-remove for ppc
when sparse vmemmap is not defined.

This patch defines HAVE_BOOTMEM_INFO_NODE for ppc and adds the call to
register_page_bootmem_info_node. Without this we get a BUG_ON for memory
hot remove in put_page_bootmem().

This also adds a stub for register_page_bootmem_memmap to allow ppc to build
with sparse vmemmap defined. Leaving this as a stub is fine since the same
vmemmap addresses are also handled in vmemmap_populate and as such are
properly mapped.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org> [v3.9+]
arch/powerpc/mm/init_64.c
arch/powerpc/mm/mem.c
mm/Kconfig