mtd/include/linux/mtd compatmac.h,1.70,1.71
dmarlin at infradead.org
dmarlin at infradead.org
Wed Jan 12 18:01:20 EST 2005
Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv14471/include/linux/mtd
Modified Files:
compatmac.h
Log Message:
Add an msleep() macro to use original schedule_timeout behaviour for some
older 2.4 kernels.
Index: compatmac.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/compatmac.h,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- compatmac.h 12 Jan 2005 22:34:36 -0000 1.70
+++ compatmac.h 12 Jan 2005 23:01:17 -0000 1.71
@@ -187,6 +187,12 @@
#define __user
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,28)
+#define msleep(x) \
+ set_current_state(TASK_UNINTERRUPTIBLE); \
+ schedule_timeout((x)*(HZ/1000));
+#endif
+
#ifndef __iomem
#define __iomem
#endif
More information about the linux-mtd-cvs
mailing list