aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2020-02-14 13:39:19 +0000
committerThomas Gleixner <[email protected]>2020-02-20 20:17:24 +0000
commit4e139c7711633365ebb52fbb63905395522a8413 (patch)
treedf06f2cf410cfe8d1858ab4737ee25da7110f3bd /scripts/bpf_helpers_doc.py
parentsched/rt: Provide migrate_disable/enable() inlines (diff)
downloadkernel-4e139c7711633365ebb52fbb63905395522a8413.tar.gz
kernel-4e139c7711633365ebb52fbb63905395522a8413.zip
sched: Provide cant_migrate()
Some code pathes rely on preempt_disable() to prevent migration on a non RT enabled kernel. These preempt_disable/enable() pairs are substituted by migrate_disable/enable() pairs or other forms of RT specific protection. On RT these protections prevent migration but not preemption. Obviously a cant_sleep() check in such a section will trigger on RT because preemption is not disabled. Provide a cant_migrate() macro which maps to cant_sleep() on a non RT kernel and an empty placeholder for RT for now. The placeholder will be changed to a proper debug check along with the RT specific migration protection mechanism. Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions