Merge "sched: update_rq_clock() must skip ONE update"

This commit is contained in:
Linux Build Service Account 2014-11-30 16:19:16 -08:00 committed by Gerrit - the friendly Code Review server
commit 72de2d6cb8
1 changed files with 6 additions and 1 deletions

View File

@ -166,7 +166,12 @@ void update_rq_clock(struct rq *rq)
{
s64 delta;
if (rq->skip_clock_update > 0)
/*
* Set during wakeup to indicate we are on the way to schedule().
* Decrement to ensure that a very large latency is not accounted
* to the wrong task.
*/
if (rq->skip_clock_update-- > 0)
return;
delta = sched_clock_cpu(cpu_of(rq)) - rq->clock;