Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 151166
b: refs/heads/master
c: b696fdc
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jun 16, 2009
1 parent cebf9ed commit 83dc93f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2094502dce23e9ace04d49702aa7a4d5996df55
refs/heads/master: b696fdc259f0d94348a9327bed352fac44d4883d
1 change: 1 addition & 0 deletions trunk/arch/sparc/kernel/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ static int __cpuinit dr_cpu_configure(struct ds_info *dp,
resp_len, ncpus, mask,
DR_CPU_STAT_CONFIGURED);

mdesc_populate_present_mask(mask);
mdesc_fill_in_cpu_data(mask);

for_each_cpu_mask(cpu, *mask) {
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sparc/kernel/mdesc.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ void __cpuinit mdesc_fill_in_cpu_data(cpumask_t *mask)
{
struct mdesc_handle *hp;

mdesc_populate_present_mask(mask);
mdesc_iterate_over_cpus(fill_in_one_cpu, NULL, mask);

#ifdef CONFIG_SMP
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sparc/kernel/prom_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,6 @@ void __init of_fill_in_cpu_data(void)
if (tlb_type == hypervisor)
return;

of_populate_present_mask();
of_iterate_over_cpus(fill_in_one_cpu, 0);

smp_fill_in_sib_core_maps();
Expand Down
4 changes: 4 additions & 0 deletions trunk/arch/sparc/kernel/smp_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,4 +1399,8 @@ void __init real_setup_per_cpu_areas(void)

/* Setup %g5 for the boot cpu. */
__local_per_cpu_offset = __per_cpu_offset(smp_processor_id());

of_fill_in_cpu_data();
if (tlb_type == hypervisor)
mdesc_fill_in_cpu_data(CPU_MASK_ALL_PTR);
}
12 changes: 4 additions & 8 deletions trunk/arch/sparc/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 83dc93f

Please sign in to comment.