mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
sched/deadline: Remove superfluous rq clock update in push_dl_task()
The change to call update_rq_clock() before activate_task() commit840d719604
("sched/deadline: Update rq_clock of later_rq when pushing a task") is no longer needed since commitf4904815f9
("sched/deadline: Fix double accounting of rq/running bw in push & pull") removed the add_running_bw() before the activate_task(). So we remove some comments that are no longer needed and update rq clock in activate_task(). Signed-off-by: Hao Jia <jiahao.os@bytedance.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Dietmar Eggemann <dietmar.eggemann@arm.com> Reviewed-by: Daniel Bristot de Oliveira <bristot@redhat.com> Link: https://lore.kernel.org/r/20220430085843.62939-3-jiahao.os@bytedance.com
This commit is contained in:
parent
2679a83731
commit
734387ec2f
1 changed files with 1 additions and 7 deletions
|
@ -2318,13 +2318,7 @@ static int push_dl_task(struct rq *rq)
|
||||||
|
|
||||||
deactivate_task(rq, next_task, 0);
|
deactivate_task(rq, next_task, 0);
|
||||||
set_task_cpu(next_task, later_rq->cpu);
|
set_task_cpu(next_task, later_rq->cpu);
|
||||||
|
activate_task(later_rq, next_task, 0);
|
||||||
/*
|
|
||||||
* Update the later_rq clock here, because the clock is used
|
|
||||||
* by the cpufreq_update_util() inside __add_running_bw().
|
|
||||||
*/
|
|
||||||
update_rq_clock(later_rq);
|
|
||||||
activate_task(later_rq, next_task, ENQUEUE_NOCLOCK);
|
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
resched_curr(later_rq);
|
resched_curr(later_rq);
|
||||||
|
|
Loading…
Reference in a new issue