diff options
Diffstat (limited to 'include/linux/workqueue.h')
| -rw-r--r-- | include/linux/workqueue.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index ce0719a2cfeb..ce6badc98f6d 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
| @@ -148,7 +148,7 @@ extern int keventd_up(void); | |||
| 148 | extern void init_workqueues(void); | 148 | extern void init_workqueues(void); |
| 149 | int execute_in_process_context(work_func_t fn, struct execute_work *); | 149 | int execute_in_process_context(work_func_t fn, struct execute_work *); |
| 150 | 150 | ||
| 151 | extern void cancel_work_sync(struct work_struct *work); | 151 | extern int cancel_work_sync(struct work_struct *work); |
| 152 | 152 | ||
| 153 | /* | 153 | /* |
| 154 | * Kill off a pending schedule_delayed_work(). Note that the work callback | 154 | * Kill off a pending schedule_delayed_work(). Note that the work callback |
| @@ -166,14 +166,21 @@ static inline int cancel_delayed_work(struct delayed_work *work) | |||
| 166 | return ret; | 166 | return ret; |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | extern void cancel_rearming_delayed_work(struct delayed_work *work); | 169 | extern int cancel_delayed_work_sync(struct delayed_work *work); |
| 170 | 170 | ||
| 171 | /* Obsolete. use cancel_rearming_delayed_work() */ | 171 | /* Obsolete. use cancel_delayed_work_sync() */ |
| 172 | static inline | 172 | static inline |
| 173 | void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq, | 173 | void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq, |
| 174 | struct delayed_work *work) | 174 | struct delayed_work *work) |
| 175 | { | 175 | { |
| 176 | cancel_rearming_delayed_work(work); | 176 | cancel_delayed_work_sync(work); |
| 177 | } | ||
| 178 | |||
| 179 | /* Obsolete. use cancel_delayed_work_sync() */ | ||
| 180 | static inline | ||
| 181 | void cancel_rearming_delayed_work(struct delayed_work *work) | ||
| 182 | { | ||
| 183 | cancel_delayed_work_sync(work); | ||
| 177 | } | 184 | } |
| 178 | 185 | ||
| 179 | #endif | 186 | #endif |
