[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1452619040-27137-1-git-send-email-l.stach@pengutronix.de>
Date: Tue, 12 Jan 2016 18:17:19 +0100
From: Lucas Stach <l.stach@...gutronix.de>
To: "Rafael J . Wysocki" <rjw@...ysocki.net>,
Thomas Gleixner <tglx@...utronix.de>
Cc: Pavel Machek <pavel@....cz>, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, patchwork-lst@...gutronix.de
Subject: [PATCH 1/2] timer: add setup_deferrable_timer macro
Add the trivial missing macro to setup a deferrable timer.
Signed-off-by: Lucas Stach <l.stach@...gutronix.de>
---
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
Powered by blists - more mailing lists