Skip to content

Commit

Permalink
timer: add setup_deferrable_timer macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lucas Stach committed May 6, 2016
1 parent 04974df commit 6f3ffc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 6f3ffc1

Please sign in to comment.