summaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2019-02-21 08:55:49 +0300
committerAnup Patel <anup@brainfault.org>2019-02-21 08:55:49 +0300
commit0651c263c8e39f409a72ba01bfd73ddf3d3e6748 (patch)
tree6fd8e3a02a4dfa7ef04f97cdd0a79966befc8153 /arch/riscv/include
parent680f9b8e6c56414b6ade41e01950cc1318856b6b (diff)
downloadlinux-0651c263c8e39f409a72ba01bfd73ddf3d3e6748.tar.xz
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>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/pgtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
index a8179a8c1491..1141364d990e 100644
--- a/arch/riscv/include/asm/pgtable.h
+++ b/arch/riscv/include/asm/pgtable.h
@@ -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)