Commit f912d051 authored by Wang Hui's avatar Wang Hui Committed by Peter Zijlstra

sched: remove redundant on_rq status change

activate_task/deactivate_task will change on_rq status,
no need to do it again.
Signed-off-by: default avatarWang Hui <john.wanghui@huawei.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210721091109.1406043-1-john.wanghui@huawei.com
parent 1c6829cf
......@@ -5659,11 +5659,9 @@ static bool try_steal_cookie(int this, int that)
if (p->core_occupation > dst->idle->core_occupation)
goto next;
p->on_rq = TASK_ON_RQ_MIGRATING;
deactivate_task(src, p, 0);
set_task_cpu(p, this);
activate_task(dst, p, 0);
p->on_rq = TASK_ON_RQ_QUEUED;
resched_curr(dst);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment