]> git.hungrycats.org Git - linux/commit
[PATCH] Minor workqueue.c cleanup
authorAndrew Morton <akpm@osdl.org>
Wed, 18 Feb 2004 12:47:29 +0000 (04:47 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 18 Feb 2004 12:47:29 +0000 (04:47 -0800)
commitd01feda8147d3b393b7887c8e1a05edc4b17b2ed
tree3306e3fdc159c86622578a57980d155b87959f71
parent35651c8cc709a1f2c0afacb86c5b610d77c41d9e
[PATCH] Minor workqueue.c cleanup

From: Rusty Russell <rusty@rustcorp.com.au>

Move duplicated code to __queue_work(), and don't set the CPU for
queue_delayed_work() until the timer goes off.  The second one only has an
effect on CONFIG_HOTPLUG_CPU where the CPU goes down and the timer goes off
on a different CPU than it was scheduled on.
kernel/workqueue.c