Commit 17e3e88
sched/fair: Fix pelt lost idle time detection
The check for some lost idle pelt time should be always done when
pick_next_task_fair() fails to pick a task and not only when we call it
from the fair fast-path.
The case happens when the last running task on rq is a RT or DL task. When
the latter goes to sleep and the /Sum of util_sum of the rq is at the max
value, we don't account the lost of idle time whereas we should.
Fixes: 6769243 ("sched: Rework pick_next_task() slow-path")
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>1 parent ee6e44d commit 17e3e88
1 file changed
+13
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8920 | 8920 | | |
8921 | 8921 | | |
8922 | 8922 | | |
8923 | | - | |
8924 | | - | |
8925 | | - | |
8926 | | - | |
| 8923 | + | |
| 8924 | + | |
8927 | 8925 | | |
8928 | | - | |
8929 | | - | |
8930 | | - | |
8931 | | - | |
8932 | | - | |
8933 | | - | |
8934 | | - | |
| 8926 | + | |
| 8927 | + | |
| 8928 | + | |
| 8929 | + | |
| 8930 | + | |
| 8931 | + | |
| 8932 | + | |
| 8933 | + | |
8935 | 8934 | | |
8936 | | - | |
8937 | | - | |
| 8935 | + | |
| 8936 | + | |
| 8937 | + | |
8938 | 8938 | | |
8939 | 8939 | | |
8940 | 8940 | | |
| |||
0 commit comments