aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/deadline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index 1356afd1eeb6..fbfc3f1d368a 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -1259,6 +1259,9 @@ static enum hrtimer_restart inactive_task_timer(struct hrtimer *timer)
1259 1259
1260 rq = task_rq_lock(p, &rf); 1260 rq = task_rq_lock(p, &rf);
1261 1261
1262 sched_clock_tick();
1263 update_rq_clock(rq);
1264
1262 if (!dl_task(p) || p->state == TASK_DEAD) { 1265 if (!dl_task(p) || p->state == TASK_DEAD) {
1263 struct dl_bw *dl_b = dl_bw_of(task_cpu(p)); 1266 struct dl_bw *dl_b = dl_bw_of(task_cpu(p));
1264 1267
@@ -1278,9 +1281,6 @@ static enum hrtimer_restart inactive_task_timer(struct hrtimer *timer)
1278 if (dl_se->dl_non_contending == 0) 1281 if (dl_se->dl_non_contending == 0)
1279 goto unlock; 1282 goto unlock;
1280 1283
1281 sched_clock_tick();
1282 update_rq_clock(rq);
1283
1284 sub_running_bw(dl_se, &rq->dl); 1284 sub_running_bw(dl_se, &rq->dl);
1285 dl_se->dl_non_contending = 0; 1285 dl_se->dl_non_contending = 0;
1286unlock: 1286unlock: