|
@@ -81,8 +81,9 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle)
|
|
|
* the spinning harts that they can continue the boot process.
|
|
|
*/
|
|
|
smp_mb();
|
|
|
- __cpu_up_stack_pointer[cpu] = task_stack_page(tidle) + THREAD_SIZE;
|
|
|
- __cpu_up_task_pointer[cpu] = tidle;
|
|
|
+ WRITE_ONCE(__cpu_up_stack_pointer[cpu],
|
|
|
+ task_stack_page(tidle) + THREAD_SIZE);
|
|
|
+ WRITE_ONCE(__cpu_up_task_pointer[cpu], tidle);
|
|
|
|
|
|
while (!cpu_online(cpu))
|
|
|
cpu_relax();
|