diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/timer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/timer.h b/include/linux/timer.h index 3340f3bd135d..ddd5bbe1fc8e 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h | |||
@@ -38,6 +38,15 @@ extern struct timer_base_s __init_timer_base; | |||
38 | 38 | ||
39 | void fastcall init_timer(struct timer_list * timer); | 39 | void fastcall init_timer(struct timer_list * timer); |
40 | 40 | ||
41 | static inline void setup_timer(struct timer_list * timer, | ||
42 | void (*function)(unsigned long), | ||
43 | unsigned long data) | ||
44 | { | ||
45 | timer->function = function; | ||
46 | timer->data = data; | ||
47 | init_timer(timer); | ||
48 | } | ||
49 | |||
41 | /*** | 50 | /*** |
42 | * timer_pending - is a timer pending? | 51 | * timer_pending - is a timer pending? |
43 | * @timer: the timer in question | 52 | * @timer: the timer in question |