sched: Add migrate_disable()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 17 Sep 2020 08:38:30 +0000 (10:38 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 10 Nov 2020 17:38:59 +0000 (18:38 +0100)
commitaf449901b84c98cbd84a0113223ba3bcfcb12a26
tree0580fcc4d04ef7ebaa77a658cba36203668c3e44
parent9cfc3e18adb0362533e911bf3ce6ec8c821cfccc
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
include/linux/preempt.h
include/linux/sched.h
kernel/sched/core.c
kernel/sched/sched.h
lib/smp_processor_id.c