From: Glauber Costa Date: Mon, 3 Mar 2008 17:13:14 +0000 (-0300) Subject: x86: use cpu_relax instead of rep_nop X-Git-Tag: v2.6.26-rc1~1154^2~440 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e104383fbf26570968cbf060955f67cd5378300a;p=~emulex%2Finfiniband.git x86: use cpu_relax instead of rep_nop This is done for smpboot_32.c Signed-off-by: Glauber Costa Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c index ee826594aa0..2dd95bae2b9 100644 --- a/arch/x86/kernel/smpboot_32.c +++ b/arch/x86/kernel/smpboot_32.c @@ -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: */