All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] backports: backport power efficient workqueues
@ 2014-01-31 10:33 Johannes Berg
  2014-02-08 13:57 ` Hauke Mehrtens
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2014-01-31 10:33 UTC (permalink / raw)
  To: backports; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

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>
---
 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 1949876..63a3b17 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 */
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] backports: backport power efficient workqueues
  2014-01-31 10:33 [PATCH] backports: backport power efficient workqueues Johannes Berg
@ 2014-02-08 13:57 ` Hauke Mehrtens
  0 siblings, 0 replies; 2+ messages in thread
From: Hauke Mehrtens @ 2014-02-08 13:57 UTC (permalink / raw)
  To: Johannes Berg, backports; +Cc: Johannes Berg

On 01/31/2014 11:33 AM, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> 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>
> ---
Thank you for the patch, it was applied and pushed.

Hauke

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-08 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-31 10:33 [PATCH] backports: backport power efficient workqueues Johannes Berg
2014-02-08 13:57 ` Hauke Mehrtens

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.