HMP: Drop "sched: Fix sleep time double accounting in enqueue entity"
authorMark Brown <broonie@linaro.org>
Wed, 22 Jan 2014 11:18:53 +0000 (11:18 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 22 Jan 2014 12:26:27 +0000 (12:26 +0000)
commit0e9b1909c3c660060d94a0a8a15c5299de97a4aa
treed05afc923074ae18f6a160a174a9261bb0562bd2
parent916ff46934c350d6dee3c02da62950539559922c
HMP: Drop "sched: Fix sleep time double accounting in enqueue entity"

This reverts commit f0862cb749c537c32de82912d30110098ddc6cd6.  Analysis
from Vincent Guittot:

With the current implementation, the load average statistics of a sched entity
change according to other activity on the CPU even if this activity is done
between the running window of the sched entity and have no influence on the
running duration of the task.

When a task wakes up on the same CPU, we currently update last_runnable_update
with the return  of __synchronize_entity_decay without updating the
runnable_avg_sum and runnable_avg_period accordingly. In fact, we have to sync
the load_contrib of the se with the rq's blocked_load_contrib before removing
it from the latter (with __synchronize_entity_decay) but we must keep
last_runnable_update unchanged for updating runnable_avg_sum/period during the
next update_entity_load_avg.

Signed-off-by: Mark Brown <broonie@linaro.org>
kernel/sched/fair.c