Skip to content

Commit f954a2d

Browse files
committed
padata: switch padata_find_next() to using cpumask_next_wrap()
Calling cpumask_next_wrap_old() with starting CPU == -1 effectively means the request to find next CPU, wrapping around if needed. cpumask_next_wrap() is the proper replacement for that. Acked-by: Herbert Xu <[email protected]> Acked-by: Daniel Jordan <[email protected]> Signed-off-by: Yury Norov <[email protected]>
1 parent 566babe commit f954a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/padata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static struct padata_priv *padata_find_next(struct parallel_data *pd,
290290
if (remove_object) {
291291
list_del_init(&padata->list);
292292
++pd->processed;
293-
pd->cpu = cpumask_next_wrap_old(cpu, pd->cpumask.pcpu, -1, false);
293+
pd->cpu = cpumask_next_wrap(cpu, pd->cpumask.pcpu);
294294
}
295295

296296
spin_unlock(&reorder->lock);

0 commit comments

Comments
 (0)