From: Tejun Heo Date: Fri, 3 Aug 2012 17:30:45 +0000 (-0700) Subject: workqueue: set delayed_work->timer function on initialization X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~52^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e794dfd51c368ed3f686b7f4172830b60ae47b;p=pandora-kernel.git 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 --- Reading git-diff-tree failed