All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] timer: add setup_deferrable_timer macro
@ 2016-01-12 17:17 Lucas Stach
  2016-01-12 17:17 ` [PATCH 2/2] PM / Runtime: use deferrable timer for autosuspend Lucas Stach
  2016-01-26 17:23 ` [PATCH 1/2] timer: add setup_deferrable_timer macro Thomas Gleixner
  0 siblings, 2 replies; 5+ messages in thread
From: Lucas Stach @ 2016-01-12 17:17 UTC (permalink / raw)
  To: Rafael J . Wysocki, Thomas Gleixner
  Cc: Pavel Machek, linux-pm, linux-kernel, patchwork-lst

Add the trivial missing macro to setup a deferrable timer.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 include/linux/timer.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/timer.h b/include/linux/timer.h
index 61aa61dc410c..20ac746f3eb3 100644
--- a/include/linux/timer.h
+++ b/include/linux/timer.h
@@ -145,6 +145,8 @@ static inline void init_timer_on_stack_key(struct timer_list *timer,
 
 #define setup_timer(timer, fn, data)					\
 	__setup_timer((timer), (fn), (data), 0)
+#define setup_deferrable_timer(timer, fn, data)				\
+	__setup_timer((timer), (fn), (data), TIMER_DEFERRABLE)
 #define setup_timer_on_stack(timer, fn, data)				\
 	__setup_timer_on_stack((timer), (fn), (data), 0)
 #define setup_deferrable_timer_on_stack(timer, fn, data)		\
-- 
2.6.4


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

end of thread, other threads:[~2016-01-26 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-12 17:17 [PATCH 1/2] timer: add setup_deferrable_timer macro Lucas Stach
2016-01-12 17:17 ` [PATCH 2/2] PM / Runtime: use deferrable timer for autosuspend Lucas Stach
2016-01-13 19:02   ` Pavel Machek
2016-01-19  0:28   ` Rafael J. Wysocki
2016-01-26 17:23 ` [PATCH 1/2] timer: add setup_deferrable_timer macro Thomas Gleixner

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.