diff mbox

[1/2] timer: add setup_deferrable_timer macro

Message ID 1452619040-27137-1-git-send-email-l.stach@pengutronix.de (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Lucas Stach Jan. 12, 2016, 5:17 p.m. UTC
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(+)

Comments

Thomas Gleixner Jan. 26, 2016, 5:23 p.m. UTC | #1
On Tue, 12 Jan 2016, Lucas Stach wrote:

> 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>

@Rafael: Feel free to pick that up along with the other one.

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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)		\