summaryrefslogtreecommitdiffstats
path: root/linux-2.4.x/include/linux/workqueue.h
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2011-02-26 14:57:47 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2011-02-26 14:57:47 (GMT)
commitfaadb245e8e1d5c4245dbdacc201e85b47c0c1fb (patch)
tree725f1ac685590a82aa182776c0af40e6243cb8e6 /linux-2.4.x/include/linux/workqueue.h
parentedb45850f53478c7779484105c30f8df0a3a3782 (diff)
downloadopenipcam-faadb245e8e1d5c4245dbdacc201e85b47c0c1fb.zip
openipcam-faadb245e8e1d5c4245dbdacc201e85b47c0c1fb.tar.gz
openipcam-faadb245e8e1d5c4245dbdacc201e85b47c0c1fb.tar.bz2
Applied mtd patches and updated lib/Config.lib to 2.6.24 +mtd
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__ */