提交 e104383f 编写于 作者: G Glauber Costa 提交者: Ingo Molnar

x86: use cpu_relax instead of rep_nop

This is done for smpboot_32.c
Signed-off-by: NGlauber Costa <gcosta@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 e90009bc
......@@ -185,7 +185,7 @@ static void __cpuinit smp_callin(void)
*/
if (cpu_isset(cpuid, cpu_callout_map))
break;
rep_nop();
cpu_relax();
}
if (!time_before(jiffies, timeout)) {
......@@ -242,7 +242,7 @@ static void __cpuinit start_secondary(void *unused)
preempt_disable();
smp_callin();
while (!cpu_isset(smp_processor_id(), smp_commenced_mask))
rep_nop();
cpu_relax();
/*
* Check TSC synchronization with the BP:
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册