powerpc: Move sparse_init() into initmem_init

We did part of sparse initialisation in setup_arch and part in
initmem_init. Put them together.

Signed-off-by: Anton Blanchard <anton@samba.org>
Tested-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Anton Blanchard
2014-09-17 22:15:36 +10:00
committed by Michael Ellerman
parent 68cf0d642f
commit 21098b9e07
3 changed files with 3 additions and 1 deletions

View File

@@ -205,6 +205,7 @@ void __init initmem_init(void)
/* XXX need to clip this if using highmem? */
sparse_memory_present_with_active_regions(0);
sparse_init();
}
/* mark pages that don't exist as nosave */