sched: Add migrate_disable()
Add the base migrate_disable() support (under protest). While migrate_disable() is (currently) required for PREEMPT_RT, it is also one of the biggest flaws in the system. Notably this is just the base implementation, it is broken vs sched_setaffinity() and hotplug, both solved in additional patches for ease of review. 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.818170844@infradead.org
Showing
- include/linux/preempt.h 65 additions, 0 deletionsinclude/linux/preempt.h
- include/linux/sched.h 3 additions, 0 deletionsinclude/linux/sched.h
- kernel/sched/core.c 106 additions, 6 deletionskernel/sched/core.c
- kernel/sched/sched.h 4 additions, 2 deletionskernel/sched/sched.h
- lib/smp_processor_id.c 5 additions, 0 deletionslib/smp_processor_id.c
Loading
Please register or sign in to comment