mtd/include/linux/mtd cfi.h,1.49,1.50
David Woodhouse
dwmw2 at infradead.org
Sat Nov 20 07:46:54 EST 2004
- Previous message: mtd/fs/jffs2 wbuf.c,1.80,1.81 build.c,1.63,1.64
- Next message: mtd/drivers/mtd/chips amd_flash.c, 1.25, 1.26 cfi_cmdset_0002.c,
1.111, 1.112 cfi_cmdset_0020.c, 1.16, 1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv18131
Modified Files:
cfi.h
Log Message:
Fix cfi_udelay() to use msleep()
Index: cfi.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/cfi.h,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- cfi.h 15 Nov 2004 20:56:32 -0000 1.49
+++ cfi.h 20 Nov 2004 12:46:51 -0000 1.50
@@ -349,14 +349,12 @@
static inline void cfi_udelay(int us)
{
- unsigned long t = us * HZ / 1000000;
- if (t) {
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(t);
- return;
+ if (us >= 1000) {
+ msleep((us+999)/1000);
+ } else {
+ udelay(us);
+ cond_resched();
}
- udelay(us);
- cond_resched();
}
static inline void cfi_spin_lock(spinlock_t *mutex)
- Previous message: mtd/fs/jffs2 wbuf.c,1.80,1.81 build.c,1.63,1.64
- Next message: mtd/drivers/mtd/chips amd_flash.c, 1.25, 1.26 cfi_cmdset_0002.c,
1.111, 1.112 cfi_cmdset_0020.c, 1.16, 1.17
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list