Commit c54fce6e authored by Tejun Heo's avatar Tejun Heo

workqueue: add documentation

Update copyright notice and add Documentation/workqueue.txt.

Randy Dunlap, Dave Chinner: misc fixes.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reviewed-By: default avatarFlorian Mickler <florian@mickler.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Dave Chinner <david@fromorbit.com>
parent 84e1d836
This diff is collapsed.
...@@ -235,6 +235,10 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; } ...@@ -235,6 +235,10 @@ static inline unsigned int work_static(struct work_struct *work) { return 0; }
#define work_clear_pending(work) \ #define work_clear_pending(work) \
clear_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work)) clear_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(work))
/*
* Workqueue flags and constants. For details, please refer to
* Documentation/workqueue.txt.
*/
enum { enum {
WQ_NON_REENTRANT = 1 << 0, /* guarantee non-reentrance */ WQ_NON_REENTRANT = 1 << 0, /* guarantee non-reentrance */
WQ_UNBOUND = 1 << 1, /* not bound to any cpu */ WQ_UNBOUND = 1 << 1, /* not bound to any cpu */
......
/* /*
* linux/kernel/workqueue.c * kernel/workqueue.c - generic async execution with shared worker pool
* *
* Generic mechanism for defining kernel helper threads for running * Copyright (C) 2002 Ingo Molnar
* arbitrary tasks in process context.
*
* Started by Ingo Molnar, Copyright (C) 2002
* *
* Derived from the taskqueue/keventd code by: * Derived from the taskqueue/keventd code by:
*
* David Woodhouse <dwmw2@infradead.org> * David Woodhouse <dwmw2@infradead.org>
* Andrew Morton * Andrew Morton
* Kai Petzke <wpp@marie.physik.tu-berlin.de> * Kai Petzke <wpp@marie.physik.tu-berlin.de>
* Theodore Ts'o <tytso@mit.edu> * Theodore Ts'o <tytso@mit.edu>
* *
* Made to use alloc_percpu by Christoph Lameter. * Made to use alloc_percpu by Christoph Lameter.
*
* Copyright (C) 2010 SUSE Linux Products GmbH
* Copyright (C) 2010 Tejun Heo <tj@kernel.org>
*
* This is the generic async execution mechanism. Work items as are
* executed in process context. The worker pool is shared and
* automatically managed. There is one worker pool for each CPU and
* one extra for works which are better served by workers which are
* not bound to any specific CPU.
*
* Please read Documentation/workqueue.txt for details.
*/ */
#include <linux/module.h> #include <linux/module.h>
......
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