summaryrefslogtreecommitdiffstats
path: root/linux-2.4.x/include/linux/workqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-2.4.x/include/linux/workqueue.h')
-rw-r--r--linux-2.4.x/include/linux/workqueue.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/linux-2.4.x/include/linux/workqueue.h b/linux-2.4.x/include/linux/workqueue.h
new file mode 100644
index 0000000..d93b64a
--- /dev/null
+++ b/linux-2.4.x/include/linux/workqueue.h
@@ -0,0 +1,21 @@
+/*
+ * 2.5 compatibility
+ * $Id: workqueue.h,v 1.2 2005/11/07 11:14:52 gleixner Exp $
+ */
+
+#ifndef __MTD_COMPAT_WORKQUEUE_H__
+#define __MTD_COMPAT_WORKQUEUE_H__
+
+#include <linux/version.h>
+
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,40)
+#include_next <linux/workqueue.h>
+#else
+#include <linux/tqueue.h>
+#define work_struct tq_struct
+#define schedule_work(x) schedule_task(x)
+#define flush_scheduled_work flush_scheduled_tasks
+#define INIT_WORK(x,y,z) INIT_TQUEUE(x,y,z)
+#endif
+
+#endif /* __MTD_COMPAT_WORKQUEUE_H__ */