Merge "sched: update_rq_clock() must skip ONE update"
This commit is contained in:
commit
72de2d6cb8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue