diff options
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/rt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 2f69ca997826..94abca4d9cf5 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c | |||
@@ -925,8 +925,8 @@ static void update_curr_rt(struct rq *rq) | |||
925 | return; | 925 | return; |
926 | 926 | ||
927 | delta_exec = rq->clock_task - curr->se.exec_start; | 927 | delta_exec = rq->clock_task - curr->se.exec_start; |
928 | if (unlikely((s64)delta_exec < 0)) | 928 | if (unlikely((s64)delta_exec <= 0)) |
929 | delta_exec = 0; | 929 | return; |
930 | 930 | ||
931 | schedstat_set(curr->se.statistics.exec_max, | 931 | schedstat_set(curr->se.statistics.exec_max, |
932 | max(curr->se.statistics.exec_max, delta_exec)); | 932 | max(curr->se.statistics.exec_max, delta_exec)); |