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>
This commit is contained in:
Anup Patel
2019-02-21 11:25:49 +05:30
committed by Anup Patel
parent 680f9b8e6c
commit 0651c263c8
3 changed files with 71 additions and 72 deletions

View File

@@ -404,6 +404,7 @@ static inline int ptep_clear_flush_young(struct vm_area_struct *vma,
#define kern_addr_valid(addr) (1) /* FIXME */
#endif
extern void setup_bootmem(void);
extern void paging_init(void);
static inline void pgtable_cache_init(void)