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)
commit931ac77ef65d2d90ee1def63d2041402ec7c53ab
tree370153ff6e85c9e8e0d00f1811d214dbcba6b00a
parent9f9c23644b07e7a51f6f39064e61c150be712932
workqueue: fix build problem on !CONFIG_SMP

Commit f3421797 (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