Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48f67ea8 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: WALT: fix broken cumulative runnable average accounting



When running tasks's ravg.demand is changed update_history() adjusts
rq->cumulative_runnable_avg to reflect change of CPU load.  Currently
this fixup is broken by accumulating task's new demand without
subtracting the task's old demand.

Fix the fixup logic to subtract the task's old demand.

Change-Id: I61beb32a4850879ccb39b733f5564251e465bfeb
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 26b37261
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment