On Tue, Jan 15, 2019 at 7:14 PM Christoph Hellwig <h...@infradead.org> wrote: > > On Mon, Jan 07, 2019 at 09:40:44PM +0530, Anup Patel wrote: > > From: Anup Patel <anup.pa...@wdc.com> > > > > 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.pa...@wdc.com> > > Is there any good inherent reason why the order matters? Not that I > really care either way..
The parse_early_param() calls param callbacks in variety of subsystems including MM. Doing init_mm setup before parse_early_param() ensures that initial MM state is available when MM param callbacks are called. My intention was mainly to make boot-up flow similar to x86, ARM and ARM64 so that it is easy to add features already present in these arch ports. Regards, Anup