提交 8154fa37 编写于 作者: G Glauber de Oliveira Costa 提交者: Ingo Molnar

x86: move assignment of CPU_PREPARE before do_boot_cpu

Done to match x86_64
Signed-off-by: NGlauber Costa <gcosta@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 f3ce4466
...@@ -958,6 +958,7 @@ int __cpuinit native_cpu_up(unsigned int cpu) ...@@ -958,6 +958,7 @@ int __cpuinit native_cpu_up(unsigned int cpu)
return -EINVAL; return -EINVAL;
} }
per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
/* /*
...@@ -976,7 +977,6 @@ int __cpuinit native_cpu_up(unsigned int cpu) ...@@ -976,7 +977,6 @@ int __cpuinit native_cpu_up(unsigned int cpu)
return -EIO; return -EIO;
} }
per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
/* Unleash the CPU! */ /* Unleash the CPU! */
cpu_set(cpu, smp_commenced_mask); cpu_set(cpu, smp_commenced_mask);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册