patch-2.1.6 linux/drivers/scsi/BusLogic.h

Next file: linux/drivers/scsi/Config.in
Previous file: linux/drivers/scsi/BusLogic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.5/linux/drivers/scsi/BusLogic.h linux/drivers/scsi/BusLogic.h
@@ -1066,11 +1066,10 @@
 
 static inline void BusLogic_Delay(int Seconds)
 {
-  unsigned long TimeoutJiffies = jiffies + Seconds * HZ;
   unsigned long ProcessorFlags;
   save_flags(ProcessorFlags);
   sti();
-  while (jiffies < TimeoutJiffies) barrier();
+  while (--Seconds >= 0) udelay(1000000);
   restore_flags(ProcessorFlags);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov