]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Trivial forced-newidle balancer
authorPeter Zijlstra <peterz@infradead.org>
Tue, 17 Nov 2020 23:19:43 +0000 (18:19 -0500)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 12 May 2021 09:43:30 +0000 (11:43 +0200)
commit97b15c452ca2b61e732016f2795017fbdd621ea1
tree6583db24d9515ffcd05dd6369b5094ceb7e6b8ff
parent0c6766b6b661916c82ab488866f488c223376b5e
sched: Trivial forced-newidle balancer

When a sibling is forced-idle to match the core-cookie; search for
matching tasks to fill the core.

rcu_read_unlock() can incur an infrequent deadlock in
sched_core_balance(). Fix this by using the RCU-sched flavor instead.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Don Hiatt <dhiatt@digitalocean.com>
Tested-by: Hongyu Ning <hongyu.ning@linux.intel.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210422123308.800048269@infradead.org
include/linux/sched.h
kernel/sched/core.c
kernel/sched/idle.c
kernel/sched/sched.h