mtd/drivers/mtd/nand nand.c,1.20,1.21

David Woodhouse dwmw2 at infradead.org
Sat Apr 6 08:48:13 EST 2002


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv25939

Modified Files:
	nand.c 
Log Message:
Use time_before(), don't just compare jiffies.


Index: nand.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- nand.c	3 Apr 2002 19:30:40 -0000	1.20
+++ nand.c	6 Apr 2002 13:48:10 -0000	1.21
@@ -262,7 +262,7 @@
 		 timeo += (HZ * 20) / 1000;
 
 	spin_lock_bh (&this->chip_lock);
-	while (timeo > jiffies) {		
+	while (time_before(jiffies, timeo))) {		
 		/* Check, if we were interrupted */
 		if (this->state != state) {
 			spin_unlock_bh (&this->chip_lock);





More information about the linux-mtd-cvs mailing list