OSDN Git Service

MIPS: init: Drop boot_mem_map
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 19 Aug 2019 14:23:13 +0000 (22:23 +0800)
committerPaul Burton <paul.burton@mips.com>
Fri, 23 Aug 2019 14:42:40 +0000 (15:42 +0100)
commita94e4f24ec836c8984f839594bad7454184975b1
tree0bcdb594413f1a779755fa798d19d335eda25e6d
parenta5718fe8f70f33b1b5b47a153057cfdd19684598
MIPS: init: Drop boot_mem_map

boot_mem_map was introduced very early and cannot handle memory maps
with nid. Nowadays, memblock can exactly replace boot_mem_map.

Detect pfn info and setup resources with memblock maps.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
[paul.burton@mips.com: Fix size calculation in check_kernel_sections_mem]
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: yasha.che3@gmail.com
Cc: aurelien@aurel32.net
Cc: sfr@canb.auug.org.au
Cc: fancer.lancer@gmail.com
Cc: matt.redfearn@mips.com
Cc: chenhc@lemote.com
arch/mips/include/asm/bootinfo.h
arch/mips/kernel/setup.c