]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc: Move sparse_init() into initmem_init
authorAnton Blanchard <anton@samba.org>
Wed, 17 Sep 2014 12:15:36 +0000 (22:15 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 9 Nov 2014 22:59:26 +0000 (09:59 +1100)
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>
arch/powerpc/kernel/setup_64.c
arch/powerpc/mm/mem.c
arch/powerpc/mm/numa.c

index 91d9cfaffe6c8c9916544fb564dab79bffa45b59..6e5310ddf8c7908ad25c92d4739058dc843e5c4e 100644 (file)
@@ -690,7 +690,6 @@ void __init setup_arch(char **cmdline_p)
        emergency_stack_init();
 
        initmem_init();
-       sparse_init();
 
 #ifdef CONFIG_DUMMY_CONSOLE
        conswitchp = &dummy_con;
index e076d19c095b3c74cf9c1758bcdd7fdda1111331..b7285a5870f86190ec1a9c5a0e88d4eef45e3ed7 100644 (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 */
index 2e9ad2d76b75a277181e4e5cb9216a69cebcac24..417b0a523a47f1962f2a80e55285230c96706d11 100644 (file)
@@ -966,6 +966,8 @@ void __init initmem_init(void)
                sparse_memory_present_with_active_regions(nid);
        }
 
+       sparse_init();
+
        setup_node_to_cpumask_map();
 
        reset_numa_cpu_lookup_table();