/* * 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 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,40) #include_next #else #include #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__ */