From: Lucas Stach Date: Tue, 12 Jan 2016 17:17:19 +0000 (+0100) Subject: timer: add setup_deferrable_timer macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f3ffc19157a14b182d9d0c449cd613cef421fe1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git timer: add setup_deferrable_timer macro Add the trivial missing macro to setup a deferrable timer. Signed-off-by: Lucas Stach Acked-by: Thomas Gleixner --- 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) \