sched: Simplify migration_cpu_stop()
authorValentin Schneider <valentin.schneider@arm.com>
Thu, 25 Feb 2021 09:22:30 +0000 (10:22 +0100)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:40:21 +0000 (12:40 +0100)
commite140749c9f194d65f5984a5941e46758377c93c0
tree824a915f4296e6a358eaf14fd1957c27fb909818
parentce29ddc47b91f97e7f69a0fb7cbb5845f52a9825
sched: Simplify migration_cpu_stop()

Since, when ->stop_pending, only the stopper can uninstall
p->migration_pending. This could simplify a few ifs, because:

  (pending != NULL) => (pending == p->migration_pending)

Also, the fatty comment above affine_move_task() probably needs a bit
of gardening.

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c