projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04974df
)
timer: add setup_deferrable_timer macro
author
Lucas Stach
<l.stach@pengutronix.de>
Tue, 12 Jan 2016 17:17:19 +0000
(18:17 +0100)
committer
Lucas 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
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/timer.h
b/include/linux/timer.h
index 61aa61dc410cf5035beb63c2873a471be4c50372..20ac746f3eb305905376e9743b90a2f78cf76b57 100644
(file)
--- 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) \