commit | 185507e31ec7f3c18648864da1ef13eb7e21d4de | [log] [tgz] |
---|---|---|
author | Chris Redpath <chris.redpath@arm.com> | Wed Oct 25 17:25:20 2017 +0100 |
committer | Chris Redpath <chris.redpath@arm.com> | Thu Oct 26 15:17:49 2017 +0100 |
tree | 93bc2cbfd940691bab61808c1d781c3abf69c1be | |
parent | 55f81c1c6832be81f127a2672b7c7bf41f3bd104 [diff] |
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. Change-Id: I89fb52fb7e68fa3e682e308acc232596672d03f7 Signed-off-by: Chris Redpath <chris.redpath@arm.com>