Skip to content

Commit

Permalink
x86: move assignment of CPU_PREPARE before do_boot_cpu
Browse files Browse the repository at this point in the history
Done to match x86_64

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 f3ce446 commit 8154fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/smpboot_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
return -EINVAL;
}

per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
#ifdef CONFIG_HOTPLUG_CPU

/*
Expand All @@ -976,7 +977,6 @@ int __cpuinit native_cpu_up(unsigned int cpu)
return -EIO;
}

per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
/* Unleash the CPU! */
cpu_set(cpu, smp_commenced_mask);

Expand Down

0 comments on commit 8154fa3

Please sign in to comment.