diff options
Diffstat (limited to 'backport/backport-include/linux/workqueue.h')
-rw-r--r-- | backport/backport-include/linux/workqueue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/workqueue.h b/backport/backport-include/linux/workqueue.h index 3a035ded..9958715b 100644 --- a/backport/backport-include/linux/workqueue.h +++ b/backport/backport-include/linux/workqueue.h @@ -71,6 +71,11 @@ static inline void backport_system_workqueue_destroy(void) } #endif /* < 2.6.36 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27) +/* I can't find a more suitable replacement... */ +#define flush_work(work) cancel_work_sync(work) +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32) static inline void flush_delayed_work(struct delayed_work *dwork) { |