diff options
author | Alexander Grund <flamefire89@gmail.com> | 2023-11-12 11:10:59 +0100 |
---|---|---|
committer | Alexander Grund <flamefire89@gmail.com> | 2023-11-12 11:10:59 +0100 |
commit | 3199bfc02c789e89b00223d78f6713d1b80efa23 (patch) | |
tree | 6ce7ecb3f381e19da8504fdc3cc9aed50ec716c7 | |
parent | 30b450fc1cad48d881cb3163cb58ed31435e607d (diff) |
sched: Remove left-over CPU-query from __migrate_task
The code using this was moved to notify_migration but the query and the
variable were not removed.
Fixes 375d7195fc257 ("sched: move out migration notification out of spinlock")
Change-Id: I75569443db2a55510c8279993e94b3e1a0ed562c
-rw-r--r-- | kernel/sched/core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 61a80b81afcf..2392bbb06744 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -1170,13 +1170,10 @@ struct migration_arg { */ static struct rq *__migrate_task(struct rq *rq, struct task_struct *p, int dest_cpu) { - int src_cpu; - /* Affinity changed (again). */ if (!is_cpu_allowed(p, dest_cpu)) return rq; - src_cpu = cpu_of(rq); rq = move_queued_task(rq, p, dest_cpu); return rq; |