summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2014-06-03 09:32:41 +0200
committerTejun Heo <tj@kernel.org>2014-06-19 18:28:20 +0200
commit25ef09586df2b84a595c00ed058916122ff03297 (patch)
treee05aea3312202f540af3e6a662c148339d425a72 /kernel
parentworkqueue: use schedule_timeout_interruptible() instead of open code (diff)
downloadlinux-25ef09586df2b84a595c00ed058916122ff03297.tar.xz
linux-25ef09586df2b84a595c00ed058916122ff03297.zip
workqueue: remove useless WARN_ON_ONCE()
The @cpu is fetched via smp_processor_id() in this function, so the check is useless. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/workqueue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index fcdf0430595a..4cfcd027e4bf 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -4461,8 +4461,6 @@ static void wq_unbind_fn(struct work_struct *work)
struct worker *worker;
for_each_cpu_worker_pool(pool, cpu) {
- WARN_ON_ONCE(cpu != smp_processor_id());
-
mutex_lock(&pool->attach_mutex);
spin_lock_irq(&pool->lock);