We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2610e88 commit 840d719Copy full SHA for 840d719
kernel/sched/deadline.c
@@ -2090,8 +2090,14 @@ static int push_dl_task(struct rq *rq)
2090
sub_rq_bw(&next_task->dl, &rq->dl);
2091
set_task_cpu(next_task, later_rq->cpu);
2092
add_rq_bw(&next_task->dl, &later_rq->dl);
2093
+
2094
+ /*
2095
+ * Update the later_rq clock here, because the clock is used
2096
+ * by the cpufreq_update_util() inside __add_running_bw().
2097
+ */
2098
+ update_rq_clock(later_rq);
2099
add_running_bw(&next_task->dl, &later_rq->dl);
- activate_task(later_rq, next_task, 0);
2100
+ activate_task(later_rq, next_task, ENQUEUE_NOCLOCK);
2101
ret = 1;
2102
2103
resched_curr(later_rq);
0 commit comments