Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <herbert@gondor.apana.org.au>
Acked-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>

+1 -1
+1 -1
kernel/padata.c
··· 290 290 if (remove_object) { 291 291 list_del_init(&padata->list); 292 292 ++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); 294 294 } 295 295 296 296 spin_unlock(&reorder->lock);