From: Heiko Carstens Date: Fri, 24 Feb 2017 22:55:56 +0000 (-0800) Subject: memblock: also dump physmem list within __memblock_dump_all X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=409efd4c9bae4bbf58cc8476077db58454b1ed7e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git memblock: also dump physmem list within __memblock_dump_all Since commit 70210ed950b5 ("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.com Signed-off-by: Heiko Carstens Cc: Philipp Hachtmann Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memblock.c b/mm/memblock.c index f82c65aace9a..647d79ed07a3 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -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)