blob: d93b64ab9ee1c162f6a30267efd05e5bc21989f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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__ */
|