workqueue: fix incorrect cpu number BUG_ON() in get_work_gcwq()
authorTejun Heo <tj@kernel.org>
Fri, 2 Jul 2010 08:03:51 +0000 (10:03 +0200)
committerTejun Heo <tj@kernel.org>
Fri, 2 Jul 2010 08:03:51 +0000 (10:03 +0200)
commita1e453d2799760ecf2e09ecd45b80edbe7ff540e
treed2f9383f2703c762051a8379872244b1a4ebda2e
parent4ce48b37bfedc2bc11e61eae76784887e88b922c
workqueue: fix incorrect cpu number BUG_ON() in get_work_gcwq()

get_work_gcwq() was incorrectly triggering BUG_ON() if cpu number is
equal to or higher than num_possible_cpus() instead of nr_cpu_ids.
Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c