aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/init_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/mm/init_64.c')
-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.