Short of getting an explanation for the odd difference to native, make
the code match native (and also, in the case of x86-64,
__smp_call_function_single()).
Signed-off-by: Jan Beulich <jbeulich@novell.com>
/* Wait for response */
while (atomic_read(&data.started) != cpus)
- barrier();
+ cpu_relax();
if (wait)
while (atomic_read(&data.finished) != cpus)
- barrier();
+ cpu_relax();
spin_unlock(&call_lock);
return 0;
/* Wait for response */
while (atomic_read(&data.started) != cpus)
-#ifndef CONFIG_XEN
cpu_relax();
-#else
- barrier();
-#endif
if (!wait)
return;
while (atomic_read(&data.finished) != cpus)
-#ifndef CONFIG_XEN
cpu_relax();
-#else
- barrier();
-#endif
}
/*