sched/fair: Exclude the current CPU from find_new_ilb()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 18 Aug 2020 08:48:17 +0000 (10:48 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 29 Oct 2020 10:00:30 +0000 (11:00 +0100)
commit45da7a2b0af8fa29dff2e6ba8926322068350fce
treee9b9745ab73fd899d35bcb1f089d91cae1151277
parentb13772f8135633f273f0cf742143b19cffbf9e1d
sched/fair: Exclude the current CPU from find_new_ilb()

It is possible for find_new_ilb() to select the current CPU, however,
this only happens from newidle balancing, in which case need_resched()
will be true, and consequently nohz_csd_func() will not trigger the
softirq.

Exclude the current CPU from becoming an ILB target.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
kernel/sched/fair.c