Changeset 689 for GPL/trunk/include/linux/workqueue.h
- Timestamp:
- Jul 24, 2021, 3:42:01 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 682-688
- Property svn:mergeinfo changed
-
GPL/trunk/include/linux/workqueue.h
r679 r689 5 5 #include <linux/completion.h> 6 6 #include <linux/bitops.h> 7 7 8 8 9 #define cancel_work_sync(w) flush_scheduled_work() … … 28 29 struct completion thread_exited; 29 30 }; 31 30 32 struct delayed_work { 31 33 struct work_struct work; 34 struct timer_list timer; 35 36 /* target workqueue and CPU ->timer uses to queue ->work */ 37 struct workqueue_struct *wq; 38 int cpu; 32 39 }; 33 40 … … 86 93 #define flush_work(work) cancel_work_sync(work) 87 94 95 #define container_of(ptr, type, member) \ 96 ( (type *)( (char *)ptr - offsetof(type,member) ) ) 97 98 static inline struct delayed_work *to_delayed_work(struct work_struct *work) 99 { 100 return container_of(work, struct delayed_work, work); 101 } 102 88 103 #endif /* __LINUX_WORKQUEUE_H */
Note:
See TracChangeset
for help on using the changeset viewer.