Messages in this thread Patch in this message | | | Date | Thu, 18 Sep 2003 16:36:45 -0700 | From | Chris Wright <> | Subject | [PATCH 8/13] use cpu_relax() in busy loop |
| |
Replace busy loop rep_nop() with cpu_relax().
This is bordering on a gratuitous change given the i386 def'n of cpu_relax(). But I was fixing up other busy loops, and my grep found this one.
===== arch/i386/kernel/smpboot.c 1.64 vs edited ===== --- 1.64/arch/i386/kernel/smpboot.c Mon Aug 18 19:46:23 2003 +++ edited/arch/i386/kernel/smpboot.c Thu Sep 18 10:07:18 2003 @@ -378,7 +378,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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |