patch-2.4.0-prerelease linux/drivers/scsi/aha152x.c

Next file: linux/drivers/scsi/amiga7xx.c
Previous file: linux/drivers/scsi/README.tmscsim
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/drivers/scsi/aha152x.c linux/drivers/scsi/aha152x.c
@@ -1604,7 +1604,7 @@
 
 	init_timer(&timer);
 	timer.data     = (unsigned long) &sem;
-	timer.expires  = jiffies + 10000;   /* 10s */
+	timer.expires  = jiffies + 10 * HZ;   /* 10s */
 	timer.function = (void (*)(unsigned long)) timer_expired;
 	add_timer(&timer);
 
@@ -2579,7 +2579,7 @@
 		if(TESTHI(DMASTAT, DFIFOFULL)) {
 			fifodata = 128;
 		} else {
-			the_time=jiffies + 100;
+			the_time=jiffies + HZ;
 			while(TESTLO(SSTAT2, SEMPTY) && time_before(jiffies,the_time))
 				barrier();
 

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