patch-2.1.102 linux/drivers/scsi/scsiiom.c

Next file: linux/drivers/scsi/seagate.c
Previous file: linux/drivers/scsi/scsi_obsolete.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.101/linux/drivers/scsi/scsiiom.c linux/drivers/scsi/scsiiom.c
@@ -1426,12 +1426,13 @@
 #ifdef DC390_DEBUG0
     printk("RST_DETEC");
 #endif
-    save_flags(flags);
-    sti();
-    wlval = jiffies + HZ;
-    while( jiffies < wlval );	 /* delay 1 sec */
 
+    /* delay a second */
+    { unsigned int msec = 1*1000; while (--msec) udelay(1000); }
+
+    save_flags(flags);
     cli();
+
     ioport = pACB->IOPortBase;
     bval = DMA_IDLE_CMD;
     outb(bval,ioport+DMA_Cmd);

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