]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit62e5998f5475d4759602931d65d183c3033f5fb0
treee9b9745ab73fd899d35bcb1f089d91cae1151277
parentb1a6b87ce29852f8fa5e0bc00c05a7317dc63b9e
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