diff options
author | Tejun Heo <tj@kernel.org> | 2012-08-03 17:30:45 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-08-03 17:30:45 (GMT) |
commit | d8e794dfd51c368ed3f686b7f4172830b60ae47b (patch) | |
tree | 72e930ab0a14bf50fa1dc6802722483247b72806 /kernel/irq/internals.h | |
parent | 8930caba3dbdd8b86dd6934a5920bf61b53a931e (diff) | |
download | linux-d8e794dfd51c368ed3f686b7f4172830b60ae47b.tar.xz |
workqueue: set delayed_work->timer function on initialization
delayed_work->timer.function is currently initialized during
queue_delayed_work_on(). Export delayed_work_timer_fn() and set
delayed_work timer function during delayed_work initialization
together with other fields.
This ensures the timer function is always valid on an initialized
delayed_work. This is to help mod_delayed_work() implementation.
To detect delayed_work users which diddle with the internal timer,
trigger WARN if timer function doesn't match on queue.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/irq/internals.h')
0 files changed, 0 insertions, 0 deletions