OSDN Git Service

sched: WALT: fix broken cumulative runnable average accounting
authorJoonwoo Park <joonwoop@codeaurora.org>
Fri, 26 May 2017 18:19:36 +0000 (11:19 -0700)
committerJoonwoo Park <joonwoop@codeaurora.org>
Sat, 2 Sep 2017 00:20:51 +0000 (17:20 -0700)
commit48f67ea85de468a9b3e47e723e7681cf7771dea6
tree7893a1bbc808f4e000eb6812939b7be7ede335cf
parent26b37261ea25c6928c6a69e77a8f7d39ee3267c9
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: Joonwoo Park <joonwoop@codeaurora.org>
kernel/sched/walt.c