diff options
| author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-08 01:56:19 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-08 01:56:19 -0400 |
| commit | 18d4ed4342c14ebeebe60d267b171053efcdfa87 (patch) | |
| tree | f315e77f66cbb70869e2f80cde5c18380a80901e /include/linux/workqueue.h | |
| parent | 722d0daf2b607a32dad1357bf797e3803484af0a (diff) | |
| parent | 22de4534ae12d61257fc0e53d2571686b03305bc (diff) | |
Merge branch 'for-3.1' into for-3.2
Conflict due to the fix for the register map failure - taken the for-3.1
version.
Conflicts:
sound/soc/codecs/sgtl5000.c
Diffstat (limited to 'include/linux/workqueue.h')
| -rw-r--r-- | include/linux/workqueue.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index f584aba78ca9..0d556deb497b 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include <linux/bitops.h> | 10 | #include <linux/bitops.h> |
| 11 | #include <linux/lockdep.h> | 11 | #include <linux/lockdep.h> |
| 12 | #include <linux/threads.h> | 12 | #include <linux/threads.h> |
| 13 | #include <asm/atomic.h> | 13 | #include <linux/atomic.h> |
| 14 | 14 | ||
| 15 | struct workqueue_struct; | 15 | struct workqueue_struct; |
| 16 | 16 | ||
| @@ -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 | { |
