diff options
author | Wang Hui <john.wanghui@huawei.com> | 2021-07-21 17:11:09 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-08-04 15:16:43 +0200 |
commit | f912d051619d11411867f642d2004928eb0b41b1 (patch) | |
tree | 2a21b75afd9e08688ea0e72f2eddbb60e1d38df3 /kernel/sched | |
parent | 1c6829cfd3d5124b125e6df41158665aea413b35 (diff) |
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 <john.wanghui@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210721091109.1406043-1-john.wanghui@huawei.com
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0c22cd026440..6c562ad1ad5d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -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); |