sched,rt: Use cpumask_any*_distribute()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 1 Oct 2020 13:54:14 +0000 (15:54 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 10 Nov 2020 17:39:00 +0000 (18:39 +0100)
commit14e292f8d45380c519a83d9b0f37089a17eedcdf
tree50b8a4826a5fa1a806304a497930b46e8282d0ae
parent3015ef4b98f53fe7eba4f5f82f562c0e074d213c
sched,rt: Use cpumask_any*_distribute()

Replace a bunch of cpumask_any*() instances with
cpumask_any*_distribute(), by injecting this little bit of random in
cpu selection, we reduce the chance two competing balance operations
working off the same lowest_mask pick the same CPU.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Reviewed-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Link: https://lkml.kernel.org/r/20201023102347.190759694@infradead.org
include/linux/cpumask.h
kernel/sched/deadline.c
kernel/sched/rt.c
lib/cpumask.c