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
- Lines: 9
- Date:
2003-06-13 07:51:36.000000000 -0700
- Orig file:
linux-2.4.20/drivers/scsi/eata_generic.h
- Orig date:
2001-08-15 01:22:16.000000000 -0700
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)