diff options
author | Tejun Heo <tj@kernel.org> | 2012-08-03 13:30:44 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-08-03 13:30:44 -0400 |
commit | 0a13c00e9d4502b8e3fd9260ce781758ff2c3970 (patch) | |
tree | 4233ef42fad89b4c42e00d8fed76112ce28390ba /include/linux/workqueue.h | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
workqueue: reorder queueing functions so that _on() variants are on top
Currently, queue/schedule[_delayed]_work_on() are located below the
counterpart without the _on postifx even though the latter is usually
implemented using the former. Swap them.
This is cleanup and doesn't cause any functional difference.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r-- | include/linux/workqueue.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index af155450cabb..597034276611 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
@@ -365,23 +365,24 @@ __alloc_workqueue_key(const char *fmt, unsigned int flags, int max_active, | |||
365 | 365 | ||
366 | extern void destroy_workqueue(struct workqueue_struct *wq); | 366 | extern void destroy_workqueue(struct workqueue_struct *wq); |
367 | 367 | ||
368 | extern int queue_work(struct workqueue_struct *wq, struct work_struct *work); | ||
369 | extern int queue_work_on(int cpu, struct workqueue_struct *wq, | 368 | extern int queue_work_on(int cpu, struct workqueue_struct *wq, |
370 | struct work_struct *work); | 369 | struct work_struct *work); |
371 | extern int queue_delayed_work(struct workqueue_struct *wq, | 370 | extern int queue_work(struct workqueue_struct *wq, struct work_struct *work); |
372 | struct delayed_work *work, unsigned long delay); | ||
373 | extern int queue_delayed_work_on(int cpu, struct workqueue_struct *wq, | 371 | extern int queue_delayed_work_on(int cpu, struct workqueue_struct *wq, |
374 | struct delayed_work *work, unsigned long delay); | 372 | struct delayed_work *work, unsigned long delay); |
373 | extern int queue_delayed_work(struct workqueue_struct *wq, | ||
374 | struct delayed_work *work, unsigned long delay); | ||
375 | 375 | ||
376 | extern void flush_workqueue(struct workqueue_struct *wq); | 376 | extern void flush_workqueue(struct workqueue_struct *wq); |
377 | extern void drain_workqueue(struct workqueue_struct *wq); | 377 | extern void drain_workqueue(struct workqueue_struct *wq); |
378 | extern void flush_scheduled_work(void); | 378 | extern void flush_scheduled_work(void); |
379 | 379 | ||
380 | extern int schedule_work(struct work_struct *work); | ||
381 | extern int schedule_work_on(int cpu, struct work_struct *work); | 380 | extern int schedule_work_on(int cpu, struct work_struct *work); |
382 | extern int schedule_delayed_work(struct delayed_work *work, unsigned long delay); | 381 | extern int schedule_work(struct work_struct *work); |
383 | extern int schedule_delayed_work_on(int cpu, struct delayed_work *work, | 382 | extern int schedule_delayed_work_on(int cpu, struct delayed_work *work, |
384 | unsigned long delay); | 383 | unsigned long delay); |
384 | extern int schedule_delayed_work(struct delayed_work *work, | ||
385 | unsigned long delay); | ||
385 | extern int schedule_on_each_cpu(work_func_t func); | 386 | extern int schedule_on_each_cpu(work_func_t func); |
386 | extern int keventd_up(void); | 387 | extern int keventd_up(void); |
387 | 388 | ||