Commit b696fdc259f0d94348a9327bed352fac44d4883d
1 parent
a2094502dc
Exists in
master
and in
7 other branches
sparc64: Defer cpu_data() setup until end of per-cpu data initialization.
Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 5 changed files with 9 additions and 10 deletions Side-by-side Diff
arch/sparc/kernel/ds.c
arch/sparc/kernel/mdesc.c
arch/sparc/kernel/prom_64.c
arch/sparc/kernel/smp_64.c
arch/sparc/mm/init_64.c
... | ... | @@ -1799,19 +1799,15 @@ |
1799 | 1799 | if (tlb_type == hypervisor) |
1800 | 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 | 1802 | prom_build_devicetree(); |
1809 | - of_fill_in_cpu_data(); | |
1803 | + of_populate_present_mask(); | |
1810 | 1804 | |
1811 | 1805 | if (tlb_type == hypervisor) { |
1812 | 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 | } |
1809 | + | |
1810 | + real_setup_per_cpu_areas(); | |
1815 | 1811 | |
1816 | 1812 | /* Once the OF device tree and MDESC have been setup, we know |
1817 | 1813 | * the list of possible cpus. Therefore we can allocate the |