Skip to content

Commit

Permalink
memblock: also dump physmem list within __memblock_dump_all
Browse files Browse the repository at this point in the history
Since commit 70210ed ("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/[email protected]
Signed-off-by: Heiko Carstens <[email protected]>
Cc: Philipp Hachtmann <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
heicarst authored and torvalds committed Feb 25, 2017
1 parent 7409c5f commit 409efd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 409efd4

Please sign in to comment.