Commit bfbb3a0
ANDROID: sched/fair: Select correct capacity state for energy_diff
The util returned from group_max_util is not capped at the max util
present in the group, so it can be larger than the capacity stored in
the array. Ensure that when this happens, we always use the last entry
in the array to fetch energy from.
Tested with synthetics on Juno board.
Bug: 38159576
Change-Id: I89fb52fb7e68fa3e682e308acc232596672d03f7
Signed-off-by: Chris Redpath <chris.redpath@arm.com>1 parent b215e14 commit bfbb3a0
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5384 | 5384 | | |
5385 | 5385 | | |
5386 | 5386 | | |
5387 | | - | |
| 5387 | + | |
5388 | 5388 | | |
5389 | 5389 | | |
| 5390 | + | |
| 5391 | + | |
| 5392 | + | |
5390 | 5393 | | |
5391 | | - | |
| 5394 | + | |
| 5395 | + | |
5392 | 5396 | | |
| 5397 | + | |
5393 | 5398 | | |
5394 | 5399 | | |
5395 | | - | |
5396 | | - | |
5397 | | - | |
| 5400 | + | |
5398 | 5401 | | |
5399 | 5402 | | |
5400 | 5403 | | |
| |||
0 commit comments