patch-2.2.0-pre1 linux/drivers/block/paride/pg.c

Next file: linux/drivers/block/paride/pseudo.h
Previous file: linux/drivers/block/ll_rw_blk.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.132/linux/drivers/block/paride/pg.c linux/drivers/block/paride/pg.c
@@ -367,21 +367,21 @@
 	PG.status = 0;
 
 	j = 0;
-	while ((((r=RR(1,6))&go)||(stop&&(!(r&stop))))&&(jiffies<tmo)) {
+	while ((((r=RR(1,6))&go)||(stop&&(!(r&stop))))&&(time_before(jiffies,tmo))) {
 		if (j++ < PG_SPIN) udelay(PG_SPIN_DEL);
 		else pg_sleep(1);
 	}
 
-	if ((r&(STAT_ERR&stop))||(jiffies>=tmo)) {
+	if ((r&(STAT_ERR&stop))||time_after_eq(jiffies, tmo)) {
 	   s = RR(0,7);
 	   e = RR(0,1);
 	   p = RR(0,2);
 	   if (verbose > 1)
 	     printk("%s: %s: stat=0x%x err=0x%x phase=%d%s\n",
-		   PG.name,msg,s,e,p,(jiffies>=tmo)?" timeout":"");
+		   PG.name,msg,s,e,p,time_after_eq(jiffies, tmo)?" timeout":"");
 
 
-	   if (jiffies>=tmo) e |= 0x100;
+	   if (time_after_eq(jiffies, tmo)) e |= 0x100;
 	   PG.status = (e >> 4) & 0xff;
 	   return -1;
 	}

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