Skip to content

Commit f912d05

Browse files
Wang HuiPeter Zijlstra
authored andcommitted
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: Wang Hui <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 1c6829c commit f912d05

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/sched/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5659,11 +5659,9 @@ static bool try_steal_cookie(int this, int that)
56595659
if (p->core_occupation > dst->idle->core_occupation)
56605660
goto next;
56615661

5662-
p->on_rq = TASK_ON_RQ_MIGRATING;
56635662
deactivate_task(src, p, 0);
56645663
set_task_cpu(p, this);
56655664
activate_task(dst, p, 0);
5666-
p->on_rq = TASK_ON_RQ_QUEUED;
56675665

56685666
resched_curr(dst);
56695667

0 commit comments

Comments
 (0)