RISC-V: Move setup_bootmem() to mm/init.c
authorAnup Patel <anup.patel@wdc.com>
Thu, 21 Feb 2019 05:55:49 +0000 (11:25 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 21 Feb 2019 05:55:49 +0000 (11:25 +0530)
commit0651c263c8e39f409a72ba01bfd73ddf3d3e6748
tree6fd8e3a02a4dfa7ef04f97cdd0a79966befc8153
parent680f9b8e6c56414b6ade41e01950cc1318856b6b
RISC-V: Move setup_bootmem() to mm/init.c

The setup_bootmem() mainly populates memblocks and does early memory
reservations. The right location for this function is mm/init.c. It
calls setup_initrd() so we move that as well.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
arch/riscv/include/asm/pgtable.h
arch/riscv/kernel/setup.c
arch/riscv/mm/init.c