sched/fair: ensure utilization signals are synchronized before use
authorChris Redpath <chris.redpath@arm.com>
Wed, 8 Mar 2017 13:37:32 +0000 (13:37 +0000)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 21 Jun 2017 11:07:44 +0000 (16:37 +0530)
commit742bef5da8ad7eb306ee80c117879cbd4f56a425
tree1d4767ffc946afb0b4fea2bcd00ecf0cc9f8949e
parenta815601bfb125eccf50295930f4ba86cb32451f3
sched/fair: ensure utilization signals are synchronized before use

wake_cap performs task and cpu utilization synchronization which is
what allows us to subtract current task util from prev_cpu util and
have a sensible number to work with.

It looks as though if wake_wide returns 0, we could potentially not
execute wake_cap, which would result in unsynced signals we then use
for energy calculations.

This is not necessarily an issue we've seen in traces, but it looks
as though it should be changed.

Change-Id: Ic54a3cba2a10d946ea20113a04371dea04115e82
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
kernel/sched/fair.c