sched: Rework CPU hotplug task selection
authorPeter Zijlstra <peterz@infradead.org>
Tue, 6 Aug 2019 13:13:17 +0000 (15:13 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 8 Aug 2019 07:09:30 +0000 (09:09 +0200)
commit10e7071b2f491b0fb981717ea0a585c441906ede
treece4b0f5ba59efc3d238e0b3046e81a068e27b372
parentf95d4eaee6d0207bff2dc93371133d31227d4cfb
sched: Rework CPU hotplug task selection

The CPU hotplug task selection is the only place where we used
put_prev_task() on a task that is not current. While looking at that,
it occured to me that we can simplify all that by by using a custom
pick loop.

Since we don't need to put current, we can do away with the fake task
too.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Aaron Lu <aaron.lwe@gmail.com>
Cc: Valentin Schneider <valentin.schneider@arm.com>
Cc: mingo@kernel.org
Cc: Phil Auld <pauld@redhat.com>
Cc: Julien Desfossez <jdesfossez@digitalocean.com>
Cc: Nishanth Aravamudan <naravamudan@digitalocean.com>
kernel/sched/core.c
kernel/sched/sched.h