Skip to contentSkip to conversation

memblock: also dump physmem list within __memblock_dump_all

PATCH New [email protected] 1 participant 1 message Feb 24, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 8/124 memblock: also dump physmem list within __memblock_dump_all

From: Heiko Carstens <[email protected]>
Subject: 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.

---

 mm/memblock.c |    3 +++
 1 file changed, 3 insertions(+)
mm/memblock.c renamed from mm/memblock.c~memblock-also-dump-physmem-list-within-__memblock_dump_all +3 -0
diff -puN mm/memblock.c~memblock-also-dump-physmem-list-within-__memblock_dump_all mm/memblock.c
@@ -1732,6 +1732,9 @@ void __init_memblock __memblock_dump_all
 
 	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)

_