Skip to content
Commit 0651c263 authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

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: default avatarAnup Patel <anup.patel@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarPalmer Dabbelt <palmer@sifive.com>
Reviewed-by: default avatarMike Rapoport <rppt@linux.ibm.com>
parent 680f9b8e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment