]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit95d685935a2edf209fc68f52494ede4a382a6c2b
treeea8a21f987ce55a9a0e17c2ce4e6a0189e43bc04
parent12aa2587388de6697fd2e585ae6a90f70249540b
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