unify queue_delayed_work() and queue_delayed_work_on()
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 9 May 2007 09:34:16 +0000 (02:34 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:52 +0000 (12:30 -0700)
commit63bc0362521cbaae3ed17b8de7b094f9492453f0
tree2a1bee6651fe00b76828cf75742bbff221188990
parented7c0feede39d70092d048ec30f59bb1df69eec6
unify queue_delayed_work() and queue_delayed_work_on()

Change queue_delayed_work() to use queue_delayed_work_on() to avoid the code
duplication (saves 133 bytes).

Q: queue_delayed_work() enqueues &dwork->work directly when delay == 0, why?

[jirislaby@gmail.com: oops fix]
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/workqueue.c