summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-03-19 17:25:17 (GMT)
committerIngo Molnar <mingo@elte.hu>2008-04-17 15:41:00 (GMT)
commit8154fa3740d2bbc64aa46e75bcccb71dd82280d3 (patch)
treecba2aaeed88f0584571d15c30628ac028c01d19b
parentf3ce4466abd6f5173db98b5cc2269c139cd1790a (diff)
downloadlinux-8154fa3740d2bbc64aa46e75bcccb71dd82280d3.tar.xz
x86: move assignment of CPU_PREPARE before do_boot_cpu
Done to match x86_64 Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/smpboot_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c
index ee6f3bd..0e86ccc 100644
--- a/arch/x86/kernel/smpboot_32.c
+++ b/arch/x86/kernel/smpboot_32.c
@@ -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
/*
@@ -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);