aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-05-27 01:37:25 -0400
committerDavid S. Miller <davem@davemloft.net>2009-06-16 07:56:22 -0400
commitb696fdc259f0d94348a9327bed352fac44d4883d (patch)
tree8fed30584b6fcd5c6cb64f5091add9fd385394a1 /arch/sparc/mm
parenta2094502dce23e9ace04d49702aa7a4d5996df55 (diff)
sparc64: Defer cpu_data() setup until end of per-cpu data initialization.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm')
-rw-r--r--arch/sparc/mm/init_64.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c
index 87fea94e5125..785f0a24fcbf 100644
--- a/arch/sparc/mm/init_64.c
+++ b/arch/sparc/mm/init_64.c
@@ -1799,20 +1799,16 @@ void __init paging_init(void)
1799 if (tlb_type == hypervisor) 1799 if (tlb_type == hypervisor)
1800 sun4v_ktsb_register(); 1800 sun4v_ktsb_register();
1801 1801
1802 /* We must setup the per-cpu areas before we pull in the
1803 * PROM and the MDESC. The code there fills in cpu and
1804 * other information into per-cpu data structures.
1805 */
1806 real_setup_per_cpu_areas();
1807
1808 prom_build_devicetree(); 1802 prom_build_devicetree();
1809 of_fill_in_cpu_data(); 1803 of_populate_present_mask();
1810 1804
1811 if (tlb_type == hypervisor) { 1805 if (tlb_type == hypervisor) {
1812 sun4v_mdesc_init(); 1806 sun4v_mdesc_init();
1813 mdesc_fill_in_cpu_data(CPU_MASK_ALL_PTR); 1807 mdesc_populate_present_mask(CPU_MASK_ALL_PTR);
1814 } 1808 }
1815 1809
1810 real_setup_per_cpu_areas();
1811
1816 /* Once the OF device tree and MDESC have been setup, we know 1812 /* Once the OF device tree and MDESC have been setup, we know
1817 * the list of possible cpus. Therefore we can allocate the 1813 * the list of possible cpus. Therefore we can allocate the
1818 * IRQ stacks. 1814 * IRQ stacks.