diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2009-01-22 04:03:02 -0500 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2009-01-22 04:03:02 -0500 |
| commit | 6552ebae25ffd57574c6e72d17fce67fea08b918 (patch) | |
| tree | cde6cc932c7e47d818154b011dfd8a6997d5c18e /include/linux/workqueue.h | |
| parent | 749a440b2218e9937dca8c68e23e51ca4d8d37fe (diff) | |
| parent | 336f6c322d87806ef93afad6308ac65083a865e5 (diff) | |
Merge branch 'core/debugobjects' into core/urgent
Diffstat (limited to 'include/linux/workqueue.h')
| -rw-r--r-- | include/linux/workqueue.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index b36291130f22..20b59eb1facd 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
| @@ -124,6 +124,12 @@ struct execute_work { | |||
| 124 | init_timer_deferrable(&(_work)->timer); \ | 124 | init_timer_deferrable(&(_work)->timer); \ |
| 125 | } while (0) | 125 | } while (0) |
| 126 | 126 | ||
| 127 | #define INIT_DELAYED_WORK_ON_STACK(_work, _func) \ | ||
| 128 | do { \ | ||
| 129 | INIT_WORK(&(_work)->work, (_func)); \ | ||
| 130 | init_timer_on_stack(&(_work)->timer); \ | ||
| 131 | } while (0) | ||
| 132 | |||
| 127 | /** | 133 | /** |
| 128 | * work_pending - Find out whether a work item is currently pending | 134 | * work_pending - Find out whether a work item is currently pending |
| 129 | * @work: The work item in question | 135 | * @work: The work item in question |
