Skip to content

Commit

Permalink
x86: use cpu_relax instead of rep_nop
Browse files Browse the repository at this point in the history
This is done for smpboot_32.c

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent e90009b commit e104383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/smpboot_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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:
*/
Expand Down

0 comments on commit e104383

Please sign in to comment.