From: Johannes Berg Date: Fri, 31 Jan 2014 10:33:52 +0000 (+0100) Subject: backports: backport power efficient workqueues X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e66d75bea4402223805eb91cc204fdf461d03a1f;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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 */