]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: workqueue_cpu_callback() should be cpu_notifier instead of hotcpu_notifier
authorTejun Heo <tj@kernel.org>
Mon, 9 Aug 2010 09:50:34 +0000 (11:50 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 9 Aug 2010 09:50:34 +0000 (11:50 +0200)
commit7845e205390dec62f3ce94eb1fdda75da3838d2b
tree6544ae45f39370fd35cb44076dc4628bd852bc19
parent9230027c0226086e83590bafca3077b632d6a1a0
workqueue: workqueue_cpu_callback() should be cpu_notifier instead of hotcpu_notifier

Commit eac26614 (workqueue: mark init_workqueues as early_initcall)
made workqueue SMP initialization depend on workqueue_cpu_callback(),
which however was registered as hotcpu_notifier() and didn't get
called if CONFIG_HOTPLUG_CPU is not set.  This made gcwqs on non-boot
CPUs not create their initial workers leading to boot failures.  Fix
it by making it a cpu_notifier.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-and-bisected-by: walt <w41ter@gmail.com>
Tested-by: Markus Trippelsdorf <markus@trippelsdorf.de>
kernel/workqueue.c