backports: backport power efficient workqueues
authorJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jan 2014 10:33:52 +0000 (11:33 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 8 Feb 2014 12:25:24 +0000 (13:25 +0100)
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 <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/workqueue.h

index 1949876855585b8098e2086ec8ba11de0766a07f..63a3b17bbd8837254353da8551399ff0da3ace00 100644 (file)
@@ -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 */