Skip to content

Commit

Permalink
x86: don't initialize sibling and core maps during preparation
Browse files Browse the repository at this point in the history
it is redundant, since it is already done by set_cpu_sibling_map()

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 50e440a commit e7f8b14
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions arch/x86/kernel/smpboot_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,18 +855,6 @@ static void __init smp_boot_cpus(unsigned int max_cpus)
++kicked;
}

/*
* construct cpu_sibling_map, so that we can tell sibling CPUs
* efficiently.
*/
for_each_possible_cpu(cpu) {
cpus_clear(per_cpu(cpu_sibling_map, cpu));
cpus_clear(per_cpu(cpu_core_map, cpu));
}

cpu_set(0, per_cpu(cpu_sibling_map, 0));
cpu_set(0, per_cpu(cpu_core_map, 0));

smpboot_setup_io_apic();

setup_boot_clock();
Expand Down

0 comments on commit e7f8b14

Please sign in to comment.