diff options
Diffstat (limited to 'kernel/sched_rt.c')
| -rw-r--r-- | kernel/sched_rt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index 5b559e8c8aa6..5fbd87ad0f56 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
| @@ -15,14 +15,14 @@ static inline void update_curr_rt(struct rq *rq, u64 now) | |||
| 15 | if (!task_has_rt_policy(curr)) | 15 | if (!task_has_rt_policy(curr)) |
| 16 | return; | 16 | return; |
| 17 | 17 | ||
| 18 | delta_exec = now - curr->se.exec_start; | 18 | delta_exec = rq->clock - curr->se.exec_start; |
| 19 | if (unlikely((s64)delta_exec < 0)) | 19 | if (unlikely((s64)delta_exec < 0)) |
| 20 | delta_exec = 0; | 20 | delta_exec = 0; |
| 21 | 21 | ||
| 22 | schedstat_set(curr->se.exec_max, max(curr->se.exec_max, delta_exec)); | 22 | schedstat_set(curr->se.exec_max, max(curr->se.exec_max, delta_exec)); |
| 23 | 23 | ||
| 24 | curr->se.sum_exec_runtime += delta_exec; | 24 | curr->se.sum_exec_runtime += delta_exec; |
| 25 | curr->se.exec_start = now; | 25 | curr->se.exec_start = rq->clock; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | static void | 28 | static void |
| @@ -89,7 +89,7 @@ static struct task_struct *pick_next_task_rt(struct rq *rq, u64 now) | |||
| 89 | queue = array->queue + idx; | 89 | queue = array->queue + idx; |
| 90 | next = list_entry(queue->next, struct task_struct, run_list); | 90 | next = list_entry(queue->next, struct task_struct, run_list); |
| 91 | 91 | ||
| 92 | next->se.exec_start = now; | 92 | next->se.exec_start = rq->clock; |
| 93 | 93 | ||
| 94 | return next; | 94 | return next; |
| 95 | } | 95 | } |
