|
@@ -925,8 +925,8 @@ static void update_curr_rt(struct rq *rq)
|
|
return;
|
|
return;
|
|
|
|
|
|
delta_exec = rq->clock_task - curr->se.exec_start;
|
|
delta_exec = rq->clock_task - curr->se.exec_start;
|
|
- if (unlikely((s64)delta_exec < 0))
|
|
|
|
- delta_exec = 0;
|
|
|
|
|
|
+ if (unlikely((s64)delta_exec <= 0))
|
|
|
|
+ return;
|
|
|
|
|
|
schedstat_set(curr->se.statistics.exec_max,
|
|
schedstat_set(curr->se.statistics.exec_max,
|
|
max(curr->se.statistics.exec_max, delta_exec));
|
|
max(curr->se.statistics.exec_max, delta_exec));
|