diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/workqueue.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index f584aba78ca9..2be2887c6958 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
| @@ -255,7 +255,7 @@ enum { | |||
| 255 | WQ_HIGHPRI = 1 << 4, /* high priority */ | 255 | WQ_HIGHPRI = 1 << 4, /* high priority */ |
| 256 | WQ_CPU_INTENSIVE = 1 << 5, /* cpu instensive workqueue */ | 256 | WQ_CPU_INTENSIVE = 1 << 5, /* cpu instensive workqueue */ |
| 257 | 257 | ||
| 258 | WQ_DYING = 1 << 6, /* internal: workqueue is dying */ | 258 | WQ_DRAINING = 1 << 6, /* internal: workqueue is draining */ |
| 259 | WQ_RESCUER = 1 << 7, /* internal: workqueue has rescuer */ | 259 | WQ_RESCUER = 1 << 7, /* internal: workqueue has rescuer */ |
| 260 | 260 | ||
| 261 | WQ_MAX_ACTIVE = 512, /* I like 512, better ideas? */ | 261 | WQ_MAX_ACTIVE = 512, /* I like 512, better ideas? */ |
| @@ -355,6 +355,7 @@ extern int queue_delayed_work_on(int cpu, struct workqueue_struct *wq, | |||
| 355 | struct delayed_work *work, unsigned long delay); | 355 | struct delayed_work *work, unsigned long delay); |
| 356 | 356 | ||
| 357 | extern void flush_workqueue(struct workqueue_struct *wq); | 357 | extern void flush_workqueue(struct workqueue_struct *wq); |
| 358 | extern void drain_workqueue(struct workqueue_struct *wq); | ||
| 358 | extern void flush_scheduled_work(void); | 359 | extern void flush_scheduled_work(void); |
| 359 | 360 | ||
| 360 | extern int schedule_work(struct work_struct *work); | 361 | extern int schedule_work(struct work_struct *work); |
| @@ -412,21 +413,6 @@ static inline bool __cancel_delayed_work(struct delayed_work *work) | |||
| 412 | return ret; | 413 | return ret; |
| 413 | } | 414 | } |
| 414 | 415 | ||
| 415 | /* Obsolete. use cancel_delayed_work_sync() */ | ||
| 416 | static inline __deprecated | ||
| 417 | void cancel_rearming_delayed_workqueue(struct workqueue_struct *wq, | ||
| 418 | struct delayed_work *work) | ||
| 419 | { | ||
| 420 | cancel_delayed_work_sync(work); | ||
| 421 | } | ||
| 422 | |||
| 423 | /* Obsolete. use cancel_delayed_work_sync() */ | ||
| 424 | static inline __deprecated | ||
| 425 | void cancel_rearming_delayed_work(struct delayed_work *work) | ||
| 426 | { | ||
| 427 | cancel_delayed_work_sync(work); | ||
| 428 | } | ||
| 429 | |||
| 430 | #ifndef CONFIG_SMP | 416 | #ifndef CONFIG_SMP |
| 431 | static inline long work_on_cpu(unsigned int cpu, long (*fn)(void *), void *arg) | 417 | static inline long work_on_cpu(unsigned int cpu, long (*fn)(void *), void *arg) |
| 432 | { | 418 | { |
