sparc64: Defer cpu_data() setup until end of per-cpu data initialization.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2009-05-26 22:37:25 -07:00
parent a2094502dc
commit b696fdc259
5 changed files with 9 additions and 10 deletions

View File

@@ -1799,20 +1799,16 @@ void __init paging_init(void)
if (tlb_type == hypervisor)
sun4v_ktsb_register();
/* We must setup the per-cpu areas before we pull in the
* PROM and the MDESC. The code there fills in cpu and
* other information into per-cpu data structures.
*/
real_setup_per_cpu_areas();
prom_build_devicetree();
of_fill_in_cpu_data();
of_populate_present_mask();
if (tlb_type == hypervisor) {
sun4v_mdesc_init();
mdesc_fill_in_cpu_data(CPU_MASK_ALL_PTR);
mdesc_populate_present_mask(CPU_MASK_ALL_PTR);
}
real_setup_per_cpu_areas();
/* Once the OF device tree and MDESC have been setup, we know
* the list of possible cpus. Therefore we can allocate the
* IRQ stacks.