Skip to content

Commit 2cb61f7

Browse files
Lai Jiangshanhtejun
authored andcommitted
workqueue: Remove the unneeded cpumask empty check in wq_calc_pod_cpumask()
The cpumask empty check in wq_calc_pod_cpumask() has long been useless. It just works purely as documents which states that the cpumask is not possible empty after the function returns. Now the code above is even more explicit that the cpumask is not empty, so the document-only empty check can be removed. Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 19af457 commit 2cb61f7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

kernel/workqueue.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5150,10 +5150,6 @@ static void wq_calc_pod_cpumask(struct workqueue_attrs *attrs, int cpu,
51505150
cpumask_copy(attrs->__pod_cpumask, attrs->cpumask);
51515151
return;
51525152
}
5153-
5154-
if (cpumask_empty(attrs->__pod_cpumask))
5155-
pr_warn_once("WARNING: workqueue cpumask: online intersect > "
5156-
"possible intersect\n");
51575153
}
51585154

51595155
/* install @pwq into @wq and return the old pwq, @cpu < 0 for dfl_pwq */

0 commit comments

Comments
 (0)