[PATCH 13/13] use cpu_relax() in busy loop

From: Chris Wright
Date: Thu Sep 18 2003 - 18:48:29 EST


Replace busy loop rep_nop() with cpu_relax().

This is bordering on a gratuitous change given the x86_64 def'n of
cpu_relax(). But I was fixing up other busy loops, and my grep found
this one.

===== arch/x86_64/kernel/smpboot.c 1.21 vs edited =====
--- 1.21/arch/x86_64/kernel/smpboot.c Sat Aug 23 05:13:33 2003
+++ edited/arch/x86_64/kernel/smpboot.c Thu Sep 18 10:26:41 2003
@@ -282,7 +282,7 @@
*/
if (cpu_isset(cpuid, cpu_callout_map))
break;
- rep_nop();
+ cpu_relax();
}

if (!time_before(jiffies, timeout)) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/