diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-09-14 15:47:28 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-11-10 20:38:58 +0300 |
commit | f2469a1fb43f85d243ce72638367fb6e15c33491 (patch) | |
tree | 0575cfc3c78c21e30a5766f589ed76328ebca2d7 /lib/interval_tree.c | |
parent | 2558aacff8586699bcd248b406febb28b0a25de2 (diff) | |
download | linux-f2469a1fb43f85d243ce72638367fb6e15c33491.tar.xz |
sched/core: Wait for tasks being pushed away on hotplug
RT kernels need to ensure that all tasks which are not per CPU kthreads
have left the outgoing CPU to guarantee that no tasks are force migrated
within a migrate disabled section.
There is also some desire to (ab)use fine grained CPU hotplug control to
clear a CPU from active state to force migrate tasks which are not per CPU
kthreads away for power control purposes.
Add a mechanism which waits until all tasks which should leave the CPU
after the CPU active flag is cleared have moved to a different online CPU.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Reviewed-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Link: https://lkml.kernel.org/r/20201023102346.377836842@infradead.org
Diffstat (limited to 'lib/interval_tree.c')
0 files changed, 0 insertions, 0 deletions