public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/13] use cpu_relax() in busy loop
@ 2003-09-18 23:25 Chris Wright
  2003-09-18 23:27 ` [PATCH 2/13] " Chris Wright
  0 siblings, 1 reply; 21+ messages in thread
From: Chris Wright @ 2003-09-18 23:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: rmk, torvalds

Replace busy loop barrier() with cpu_relax().

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

===== drivers/scsi/arm/acornscsi.c 1.35 vs edited =====
--- 1.35/drivers/scsi/arm/acornscsi.c	Mon Aug 25 06:37:34 2003
+++ edited/drivers/scsi/arm/acornscsi.c	Thu Sep 18 11:48:26 2003
@@ -319,7 +319,7 @@
     local_save_flags(flags);
     local_irq_enable();
 
-    while (time_before(jiffies, target_jiffies)) barrier();
+    while (time_before(jiffies, target_jiffies)) cpu_relax();
 
     local_irq_restore(flags);
 }


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2003-09-20  7:49 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-18 23:25 [PATCH 1/13] use cpu_relax() in busy loop Chris Wright
2003-09-18 23:27 ` [PATCH 2/13] " Chris Wright
2003-09-18 23:29   ` [PATCH 3/13] " Chris Wright
2003-09-18 23:31     ` [PATCH 4/13] " Chris Wright
2003-09-18 23:33       ` [PATCH 5/13] " Chris Wright
2003-09-18 23:34         ` [PATCH 6/13] " Chris Wright
2003-09-18 23:35           ` [PATCH 7/13] " Chris Wright
2003-09-18 23:36             ` [PATCH 8/13] " Chris Wright
2003-09-18 23:37               ` [PATCH 9/13] " Chris Wright
2003-09-18 23:40                 ` [PATCH 10/13] " Chris Wright
2003-09-18 23:41                   ` [PATCH 11/13] " Chris Wright
2003-09-18 23:43                     ` [PATCH 12/13] " Chris Wright
2003-09-18 23:46                       ` [PATCH 13/13] " Chris Wright
2003-09-20  7:37                 ` [PATCH 9/13] " David S. Miller
2003-09-19  7:37             ` [PATCH 7/13] " Arjan van de Ven
2003-09-19 19:49               ` Chris Wright
2003-09-19  7:34       ` [PATCH 4/13] " Arjan van de Ven
2003-09-19 19:48         ` Chris Wright
2003-09-19 19:54           ` Arjan van de Ven
2003-09-19  7:33   ` [PATCH 2/13] " Arjan van de Ven
2003-09-19 19:49     ` Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox