[PATCH 1/2] timer: add setup_deferrable_timer macro
From: Lucas Stach
Date: Tue Jan 12 2016 - 12:17:34 EST
Add the trivial missing macro to setup a deferrable timer.
Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx>
---
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