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)
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>

No differences found