]> git.baikalelectronics.ru Git - kernel.git/commit
sched/pelt: Sync util/runnable_sum with PELT window when propagating
authorVincent Guittot <vincent.guittot@linaro.org>
Wed, 6 May 2020 15:53:01 +0000 (17:53 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 May 2020 18:34:14 +0000 (20:34 +0200)
commit9591f74da1127a343728305a92fbf7d0f2d865ad
treeea8a21f987ce55a9a0e17c2ce4e6a0189e43bc04
parent7186c493754139a086591d9f62e3f51d1cfbb47a
sched/pelt: Sync util/runnable_sum with PELT window when propagating

update_tg_cfs_*() propagate the impact of the attach/detach of an entity
down into the cfs_rq hierarchy and must keep the sync with the current pelt
window.

Even if we can't sync child cfs_rq and its group se, we can sync the group
se and its parent cfs_rq with current position in the PELT window. In fact,
we must keep them sync in order to stay also synced with others entities
and group entities that are already attached to the cfs_rq.

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200506155301.14288-1-vincent.guittot@linaro.org
kernel/sched/fair.c
kernel/sched/pelt.c