mtd/drivers/mtd/nand nand_base.c,1.134,1.135
gleixner at infradead.org
gleixner at infradead.org
Tue Mar 1 04:32:48 EST 2005
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv19692
Modified Files:
nand_base.c
Log Message:
Replace msleep by cond_resched. On machines with HZ=100 (e.g. ARM) msleep slows down the operation by factor 10
Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -r1.134 -r1.135
--- nand_base.c 22 Feb 2005 21:56:46 -0000 1.134
+++ nand_base.c 1 Mar 2005 09:32:45 -0000 1.135
@@ -830,7 +830,7 @@
if (this->read_byte(mtd) & NAND_STATUS_READY)
break;
}
- msleep(1);
+ cond_resched();
}
status = (int) this->read_byte(mtd);
return status;
More information about the linux-mtd-cvs
mailing list