提交 409efd4c 编写于 作者: H Heiko Carstens 提交者: Linus Torvalds

memblock: also dump physmem list within __memblock_dump_all

Since commit 70210ed9 ("mm/memblock: add physical memory list") the
memblock structure knows about a physical memory list.

The physical memory list should also be dumped if memblock_dump_all() is
called in case memblock_debug is switched on.  This makes debugging a
bit easier.

Link: http://lkml.kernel.org/r/20170120123456.46508-3-heiko.carstens@de.ibm.comSigned-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Cc: Philipp Hachtmann <phacht@linux.vnet.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 7409c5f7
......@@ -1732,6 +1732,9 @@ void __init_memblock __memblock_dump_all(void)
memblock_dump(&memblock.memory, "memory");
memblock_dump(&memblock.reserved, "reserved");
#ifdef CONFIG_HAVE_MEMBLOCK_PHYS_MAP
memblock_dump(&memblock.physmem, "physmem");
#endif
}
void __init memblock_allow_resize(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册