[lkml]   [2003]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 1/13] use cpu_relax() in busy loop
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 @@

- while (time_before(jiffies, target_jiffies)) barrier();
+ while (time_before(jiffies, target_jiffies)) cpu_relax();

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.079 / U:14.060 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site