aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 4f8d72dae0e8..8474e5752f1f 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -843,7 +843,7 @@ struct task_struct *wq_worker_sleeping(struct task_struct *task, int cpu)
843 pool = worker->pool; 843 pool = worker->pool;
844 844
845 /* this can only happen on the local cpu */ 845 /* this can only happen on the local cpu */
846 if (WARN_ON_ONCE(cpu != raw_smp_processor_id())) 846 if (WARN_ON_ONCE(cpu != raw_smp_processor_id() || pool->cpu != cpu))
847 return NULL; 847 return NULL;
848 848
849 /* 849 /*