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.

s390: switch stop_machine_yield() to using cpumask_next_wrap()

Calling cpumask_next_wrap_old() with starting CPU equal to wrapping CPU
effectively means the request to find next CPU, wrapping around if needed.

cpumask_next_wrap() is the proper replacement for that.

Signed-off-by: Yury Norov <yury.norov@gmail.com>

+1 -1
+1 -1
arch/s390/kernel/processor.c
··· 72 72 this_cpu = smp_processor_id(); 73 73 if (__this_cpu_inc_return(cpu_relax_retry) >= spin_retry) { 74 74 __this_cpu_write(cpu_relax_retry, 0); 75 - cpu = cpumask_next_wrap_old(this_cpu, cpumask, this_cpu, false); 75 + cpu = cpumask_next_wrap(this_cpu, cpumask); 76 76 if (cpu >= nr_cpu_ids) 77 77 return; 78 78 if (arch_vcpu_is_preempted(cpu))