patch-2.4.21 linux-2.4.21/drivers/scsi/eata_generic.h

Next file: linux-2.4.21/drivers/scsi/fastlane.c
Previous file: linux-2.4.21/drivers/scsi/dpt_i2o.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/scsi/eata_generic.h linux-2.4.21/drivers/scsi/eata_generic.h
@@ -97,7 +97,7 @@
 #define DELAY(x) { ulong flags, i;                \
                    save_flags(flags); sti();      \
                    i = jiffies + (x * HZ);        \
-                   while (jiffies < i);           \
+                   while (time_before(jiffies, i)) cpu_relax();           \
                    restore_flags(flags); }
 
 /***********************************************

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)