Commit 4004f02d authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'core-cleanups-for-linus' of...

Merge branch 'core-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'core-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  workqueues: Improve schedule_work() documentation
parents 332a3392 5b0f437d
...@@ -600,7 +600,12 @@ static struct workqueue_struct *keventd_wq __read_mostly; ...@@ -600,7 +600,12 @@ static struct workqueue_struct *keventd_wq __read_mostly;
* schedule_work - put work task in global workqueue * schedule_work - put work task in global workqueue
* @work: job to be done * @work: job to be done
* *
* This puts a job in the kernel-global workqueue. * Returns zero if @work was already on the kernel-global workqueue and
* non-zero otherwise.
*
* This puts a job in the kernel-global workqueue if it was not already
* queued and leaves it in the same position on the kernel-global
* workqueue otherwise.
*/ */
int schedule_work(struct work_struct *work) int schedule_work(struct work_struct *work)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment