From e66d75bea4402223805eb91cc204fdf461d03a1f Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 31 Jan 2014 11:33:52 +0100 Subject: [PATCH] backports: backport power efficient workqueues These only exist starting from 3.11, and wireless code will start using them soon. Backport them as simple defines using the corresponding non-power-efficient workqueues. Signed-off-by: Johannes Berg Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/workqueue.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backport/backport-include/linux/workqueue.h b/backport/backport-include/linux/workqueue.h index 194987685558..63a3b17bbd88 100644 --- a/backport/backport-include/linux/workqueue.h +++ b/backport/backport-include/linux/workqueue.h @@ -117,4 +117,10 @@ static inline void flush_delayed_work(struct delayed_work *dwork) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0) +/* power efficient workqueues were added in commit 0668106ca386. */ +#define system_power_efficient_wq system_wq +#define system_freezable_power_efficient_wq system_freezable_wq +#endif + #endif /* __BACKPORT_LINUX_WORKQUEUE_H */ -- 2.30.2