diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 18:07:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-22 18:07:15 -0400 |
| commit | 5a791ea4fa4495f7136679cb5366f6544148e613 (patch) | |
| tree | dc27644add7d5f1165db19c28c25ae842e5f96b2 /include/linux | |
| parent | 8209f53d79444747782a28520187abaf689761f2 (diff) | |
| parent | 9c5a2ba70251ecaab18c7a83e38b3c620223476c (diff) | |
Merge branch 'for-3.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
* 'for-3.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
workqueue: separate out drain_workqueue() from destroy_workqueue()
workqueue: remove cancel_rearming_delayed_work[queue]()
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 | { |
