提交 7409c5f7 编写于 作者: H Heiko Carstens 提交者: Linus Torvalds

memblock: let memblock_type_name know about physmem type

Since commit 70210ed9 ("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/20170120123456.46508-2-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>
上级 997126bb
......@@ -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";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册