diff options
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r-- | include/linux/workqueue.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 3cd51e579ab1..13e1adf55c4c 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
@@ -41,6 +41,11 @@ struct delayed_work { | |||
41 | struct timer_list timer; | 41 | struct timer_list timer; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | static inline struct delayed_work *to_delayed_work(struct work_struct *work) | ||
45 | { | ||
46 | return container_of(work, struct delayed_work, work); | ||
47 | } | ||
48 | |||
44 | struct execute_work { | 49 | struct execute_work { |
45 | struct work_struct work; | 50 | struct work_struct work; |
46 | }; | 51 | }; |