patch-2.2.0-pre8 linux/drivers/scsi/aha152x.c

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

diff -u --recursive --new-file v2.2.0-pre7/linux/drivers/scsi/aha152x.c linux/drivers/scsi/aha152x.c
@@ -575,7 +575,7 @@
 {
    unsigned long the_time = jiffies + amount; /* 0.01 seconds per jiffy */
 
-   while (jiffies < the_time)
+   while (time_before(jiffies, the_time))
      barrier();
 }
 
@@ -1038,7 +1038,7 @@
     SETBITS(DMACNTRL0, SWINT);
 
     the_time=jiffies+100;
-    while(!HOSTDATA(shpnt)->swint && jiffies<the_time)
+    while(!HOSTDATA(shpnt)->swint && time_before(jiffies, the_time))
       barrier();
 
     free_irq(shpnt->irq,shpnt);

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