Repository navigation
Commit 813ff24
sched/pelt: Ensure that *_sum is always synced with *_avg
[ Upstream commit fcf6631 ]
Rounding in PELT calculation happening when entities are attached/detached
of a cfs_rq can result into situations where util/runnable_avg is not null
but util/runnable_sum is. This is normally not possible so we need to
ensure that util/runnable_sum stays synced with util/runnable_avg.
detach_entity_load_avg() is the last place where we don't sync
util/runnable_sum with util/runnbale_avg when moving some sched_entities
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210601085832.12626-1-vincent.guittot@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent f6d28f0 commit 813ff24
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3767 | 3767 | | |
3768 | 3768 | | |
3769 | 3769 | | |
| 3770 | + | |
| 3771 | + | |
| 3772 | + | |
| 3773 | + | |
| 3774 | + | |
| 3775 | + | |
3770 | 3776 | | |
3771 | 3777 | | |
3772 | | - | |
| 3778 | + | |
3773 | 3779 | | |
3774 | | - | |
| 3780 | + | |
3775 | 3781 | | |
3776 | 3782 | | |
3777 | 3783 | | |
| |||
0 commit comments