···535535 if (tlb_type == hypervisor)536536 return;537537538538- of_populate_present_mask();539538 of_iterate_over_cpus(fill_in_one_cpu, 0);540539541540 smp_fill_in_sib_core_maps();
+4
arch/sparc/kernel/smp_64.c
···1399139914001400 /* Setup %g5 for the boot cpu. */14011401 __local_per_cpu_offset = __per_cpu_offset(smp_processor_id());14021402+14031403+ of_fill_in_cpu_data();14041404+ if (tlb_type == hypervisor)14051405+ mdesc_fill_in_cpu_data(CPU_MASK_ALL_PTR);14021406}
+4-8
arch/sparc/mm/init_64.c
···17991799 if (tlb_type == hypervisor)18001800 sun4v_ktsb_register();1801180118021802- /* We must setup the per-cpu areas before we pull in the18031803- * PROM and the MDESC. The code there fills in cpu and18041804- * other information into per-cpu data structures.18051805- */18061806- real_setup_per_cpu_areas();18071807-18081802 prom_build_devicetree();18091809- of_fill_in_cpu_data();18031803+ of_populate_present_mask();1810180418111805 if (tlb_type == hypervisor) {18121806 sun4v_mdesc_init();18131813- mdesc_fill_in_cpu_data(CPU_MASK_ALL_PTR);18071807+ mdesc_populate_present_mask(CPU_MASK_ALL_PTR);18141808 }18091809+18101810+ real_setup_per_cpu_areas();1815181118161812 /* Once the OF device tree and MDESC have been setup, we know18171813 * the list of possible cpus. Therefore we can allocate the