Rev 3482 | Rev 5270 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3482 | Rev 4125 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | 59 | ||
60 | 60 | ||
Line -... | Line 61... | ||
- | 61 | #define alloc_ordered_workqueue(fmt, flags, args...) \ |
|
61 | #define alloc_ordered_workqueue(fmt, flags, args...) \ |
62 | alloc_workqueue(fmt, WQ_UNBOUND | (flags), 1, ##args) |
62 | alloc_workqueue(fmt, WQ_UNBOUND | (flags), 1, ##args) |
63 | |
Line 63... | Line 64... | ||
63 | 64 | bool queue_work(struct workqueue_struct *wq, struct work_struct *work); |
|
Line 78... | Line 79... | ||
78 | do { \ |
79 | do { \ |
79 | INIT_LIST_HEAD(&(_work)->work.entry); \ |
80 | INIT_LIST_HEAD(&(_work)->work.entry); \ |
80 | (_work)->work.func = _func; \ |
81 | (_work)->work.func = _func; \ |
81 | } while (0) |
82 | } while (0) |
Line -... | Line 83... | ||
- | 83 | ||
- | 84 | static inline bool schedule_work(struct work_struct *work) |
|
- | 85 | { |
|
- | 86 | return queue_work(system_wq, work); |
|
Line 82... | Line 87... | ||
82 | 87 | } |