RISC-V: Setup init_mm before parse_early_param()
authorAnup Patel <anup.patel@wdc.com>
Mon, 7 Jan 2019 13:49:14 +0000 (19:19 +0530)
committerAnup Patel <anup@brainfault.org>
Thu, 21 Feb 2019 05:01:48 +0000 (10:31 +0530)
commit680f9b8e6c56414b6ade41e01950cc1318856b6b
tree7f5f53e13c8583f64a6353c4d4df33f01b0722f1
parent79a47bad61bb340aed94e73b471616b246b2ecf3
RISC-V: Setup init_mm before parse_early_param()

We should setup init_mm before doing parse_early_param() in setup_arch()
to be consistent with setup_arch() of other architectures such as x86,
ARM, and ARM64.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/setup.c