aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-09-17 08:15:36 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-11-09 17:59:26 -0500
commit21098b9e07476deb3f40acd7e51cffbffb4ef865 (patch)
treea61d80fa76e978dc86448c45de74bd1a3e7b5ad1 /arch/powerpc/mm
parent68cf0d642f62267b960f947370539ff3582c4935 (diff)
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>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/mem.c1
-rw-r--r--arch/powerpc/mm/numa.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index e076d19c095b..b7285a5870f8 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -205,6 +205,7 @@ void __init initmem_init(void)
205 205
206 /* XXX need to clip this if using highmem? */ 206 /* XXX need to clip this if using highmem? */
207 sparse_memory_present_with_active_regions(0); 207 sparse_memory_present_with_active_regions(0);
208 sparse_init();
208} 209}
209 210
210/* mark pages that don't exist as nosave */ 211/* mark pages that don't exist as nosave */
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 2e9ad2d76b75..417b0a523a47 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -966,6 +966,8 @@ void __init initmem_init(void)
966 sparse_memory_present_with_active_regions(nid); 966 sparse_memory_present_with_active_regions(nid);
967 } 967 }
968 968
969 sparse_init();
970
969 setup_node_to_cpumask_map(); 971 setup_node_to_cpumask_map();
970 972
971 reset_numa_cpu_lookup_table(); 973 reset_numa_cpu_lookup_table();