diff options
Diffstat (limited to 'kernel/sched_rt.c')
-rw-r--r-- | kernel/sched_rt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c index ab77aa00b7b1..bea7d79f7e9c 100644 --- a/kernel/sched_rt.c +++ b/kernel/sched_rt.c | |||
@@ -609,7 +609,7 @@ static void update_curr_rt(struct rq *rq) | |||
609 | if (!task_has_rt_policy(curr)) | 609 | if (!task_has_rt_policy(curr)) |
610 | return; | 610 | return; |
611 | 611 | ||
612 | delta_exec = rq->clock - curr->se.exec_start; | 612 | delta_exec = rq->clock_task - curr->se.exec_start; |
613 | if (unlikely((s64)delta_exec < 0)) | 613 | if (unlikely((s64)delta_exec < 0)) |
614 | delta_exec = 0; | 614 | delta_exec = 0; |
615 | 615 | ||
@@ -618,7 +618,7 @@ static void update_curr_rt(struct rq *rq) | |||
618 | curr->se.sum_exec_runtime += delta_exec; | 618 | curr->se.sum_exec_runtime += delta_exec; |
619 | account_group_exec_runtime(curr, delta_exec); | 619 | account_group_exec_runtime(curr, delta_exec); |
620 | 620 | ||
621 | curr->se.exec_start = rq->clock; | 621 | curr->se.exec_start = rq->clock_task; |
622 | cpuacct_charge(curr, delta_exec); | 622 | cpuacct_charge(curr, delta_exec); |
623 | 623 | ||
624 | sched_rt_avg_update(rq, delta_exec); | 624 | sched_rt_avg_update(rq, delta_exec); |
@@ -1075,7 +1075,7 @@ static struct task_struct *_pick_next_task_rt(struct rq *rq) | |||
1075 | } while (rt_rq); | 1075 | } while (rt_rq); |
1076 | 1076 | ||
1077 | p = rt_task_of(rt_se); | 1077 | p = rt_task_of(rt_se); |
1078 | p->se.exec_start = rq->clock; | 1078 | p->se.exec_start = rq->clock_task; |
1079 | 1079 | ||
1080 | return p; | 1080 | return p; |
1081 | } | 1081 | } |
@@ -1713,7 +1713,7 @@ static void set_curr_task_rt(struct rq *rq) | |||
1713 | { | 1713 | { |
1714 | struct task_struct *p = rq->curr; | 1714 | struct task_struct *p = rq->curr; |
1715 | 1715 | ||
1716 | p->se.exec_start = rq->clock; | 1716 | p->se.exec_start = rq->clock_task; |
1717 | 1717 | ||
1718 | /* The running task is never eligible for pushing */ | 1718 | /* The running task is never eligible for pushing */ |
1719 | dequeue_pushable_task(rq, p); | 1719 | dequeue_pushable_task(rq, p); |