]> bbs.cooldavid.org Git - net-next-2.6.git/commit
memblock: Option for the architecture to put memblock into the .init section
authorYinghai Lu <yinghai@kernel.org>
Wed, 28 Jul 2010 05:43:02 +0000 (15:43 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Aug 2010 02:56:33 +0000 (12:56 +1000)
commit10d0643988e976360eb3497dcafb55b393b8e480
treefa8f614dd7ab2ffc2f94700451e6c9e6d26c702e
parentf0b37fad9a63217c39997b2d2b31f44e3d8be727
memblock: Option for the architecture to put memblock into the .init section

Arch code can define ARCH_DISCARD_MEMBLOCK in asm/memblock.h,
which in turns causes memblock code and data to go respectively
into the .init and .initdata sections. This will be used by the
x86 architecture.

If ARCH_DISCARD_MEMBLOCK is defined, the debugfs files to inspect
the memblock arrays after boot are not created.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
include/linux/memblock.h
mm/memblock.c