patch-2.1.68 linux/drivers/scsi/BusLogic.h
Next file: linux/drivers/scsi/Config.in
Previous file: linux/drivers/pci/pci.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Nov 30 14:11:23 1997
- Orig file:
v2.1.67/linux/drivers/scsi/BusLogic.h
- Orig date:
Sat Nov 29 11:25:10 1997
diff -u --recursive --new-file v2.1.67/linux/drivers/scsi/BusLogic.h linux/drivers/scsi/BusLogic.h
@@ -1526,15 +1526,11 @@
static inline void BusLogic_Delay(int Seconds)
{
+ int Milliseconds = 1000 * Seconds;
unsigned long ProcessorFlags;
save_flags(ProcessorFlags);
sti();
- while (--Seconds >= 0) {
- int i = 1000;
- do {
- udelay(1000);
- } while (--i);
- }
+ while (--Milliseconds >= 0) udelay(1000);
restore_flags(ProcessorFlags);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov