patch-2.2.11 linux/drivers/scsi/i91uscsi.c

Next file: linux/drivers/scsi/ide-scsi.c
Previous file: linux/drivers/scsi/gdth_proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.10/linux/drivers/scsi/i91uscsi.c linux/drivers/scsi/i91uscsi.c
@@ -218,8 +218,8 @@
 
 
 static void tul_do_pause(unsigned amount)
-{				/* Pause for amount*10 milliseconds */
-	unsigned long the_time = jiffies + amount;	/* 0.01 seconds per jiffy */
+{				/* Pause for amount jiffies */
+	unsigned long the_time = jiffies + amount;
 
 #if LINUX_VERSION_CODE >= CVT_LINUX_VERSION(2,1,95)
 	while (time_before_eq(jiffies, the_time));
@@ -579,7 +579,7 @@
 
 	/* Stall for a while, wait for target's firmware ready,make it 2 sec ! */
 	/* SONY 5200 tape drive won't work if only stall for 1 sec */
-	tul_do_pause(seconds * 100);
+	tul_do_pause(seconds * HZ);
 
 	TUL_RD(pCurHcb->HCS_Base, TUL_SInt);
 

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