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>
This commit is contained in:
parent
f3ce4466ab
commit
8154fa3740
|
@ -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)
|
||||||
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue