projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e212f36
)
workqueue: remove useless WARN_ON_ONCE()
author
Lai Jiangshan
<laijs@cn.fujitsu.com>
Tue, 3 Jun 2014 07:32:41 +0000
(15:32 +0800)
committer
Tejun Heo
<tj@kernel.org>
Thu, 19 Jun 2014 16:28:20 +0000
(12:28 -0400)
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>
kernel/workqueue.c
patch
|
blob
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index fcdf0430595a62ede184e077c408af7a502afe53..4cfcd027e4bfd9b6c2c0dca5c5431f3fa40bf240 100644
(file)
--- 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);