mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
memblock: let memblock_type_name know about physmem type
Since commit 70210ed950 ("mm/memblock: add physical memory list") the
memblock structure knows about a physical memory list.
memblock_type_name() should return "physmem" instead of "unknown" if the
name of the physmem memblock_type is being asked for.
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]>
This commit is contained in:
parent
997126bbc5
commit
7409c5f738
1 changed files with 4 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ memblock_type_name(struct memblock_type *type)
|
|||
return "memory";
|
||||
else if (type == &memblock.reserved)
|
||||
return "reserved";
|
||||
#ifdef CONFIG_HAVE_MEMBLOCK_PHYS_MAP
|
||||
else if (type == &memblock.physmem)
|
||||
return "physmem";
|
||||
#endif
|
||||
else
|
||||
return "unknown";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue