commit | 5b4236e17cc1bd9fa14b2b0c7a4ae632d41f2e20 | [log] [tgz] |
---|---|---|
author | Masami Hiramatsu <mhiramat@kernel.org> | Thu Apr 27 12:15:10 2017 +0900 |
committer | Richard Weinberger <richard@nod.at> | Wed May 03 22:38:16 2017 +0200 |
tree | ece1dff46ebb0f66add8226030fdc1addbf0d526 | |
parent | 601b7b9147455a4d8d80d04f0e5a1eb222301bbe [diff] |
um: Fix to call read_initrd after init_bootmem Since read_initrd() invokes alloc_bootmem() for allocating memory to load initrd image, it must be called after init_bootmem. This makes read_initrd() called directly from setup_arch() after init_bootmem() and mem_total_pages(). Cc: <stable@vger.kernel.org> Fixes: b63236972e1 ("um: Setup physical memory in setup_arch()") Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Richard Weinberger <richard@nod.at>