timer: add setup_deferrable_timer macro
authorLucas Stach <l.stach@pengutronix.de>
Tue, 12 Jan 2016 17:17:19 +0000 (18:17 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 6 May 2016 08:42:29 +0000 (10:42 +0200)
Add the trivial missing macro to setup a deferrable timer.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/timer.h

index 61aa61dc410cf5035beb63c2873a471be4c50372..20ac746f3eb305905376e9743b90a2f78cf76b57 100644 (file)
@@ -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)               \