]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: fix build problem on !CONFIG_SMP
authorTejun Heo <tj@kernel.org>
Tue, 20 Jul 2010 09:07:48 +0000 (11:07 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 20 Jul 2010 09:15:14 +0000 (11:15 +0200)
commitbae331d5336a4d8e60a20921061d9ec4294e038c
tree370153ff6e85c9e8e0d00f1811d214dbcba6b00a
parente4bf3933fec6bdeed39361ee1462afdb6f3300ea
workqueue: fix build problem on !CONFIG_SMP

Commit 77d8d5cb (workqueue: implement unbound workqueue) incorrectly
tested CONFIG_SMP as part of a C expression in alloc/free_cwqs().  As
CONFIG_SMP is not defined in UP, this breaks build.  Fix it by using

Found during linux-next build test.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
kernel/workqueue.c