diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-01-22 03:50:44 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-01-22 04:02:07 -0500 |
commit | 336f6c322d87806ef93afad6308ac65083a865e5 (patch) | |
tree | 25726735e2a355556850dca27ce0b1413bf0e4f1 /include | |
parent | f3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b (diff) |
debugobjects: add and use INIT_WORK_ON_STACK
Impact: Fix debugobjects warning
debugobject enabled kernels spit out a warning in hpet code due to a
workqueue which is initialized on stack.
Add INIT_WORK_ON_STACK() which calls init_timer_on_stack() and use it
in hpet.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-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 |