]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Add an event, SCX_EV_DISPATCH_KEEP_LAST
authorChangwoo Min <changwoo@igalia.com>
Fri, 31 Jan 2025 07:09:31 +0000 (16:09 +0900)
committerTejun Heo <tj@kernel.org>
Sun, 2 Feb 2025 17:23:18 +0000 (07:23 -1000)
commit7125660bc16b7e87665bc859e7337388bdb63e0a
treef5bc55e0cdcd409aa46291ba273665d5b6cdb221
parent9be0a1b0c8fbd21ef6d7f9428a76b759f9db0de3
sched_ext: Add an event, SCX_EV_DISPATCH_KEEP_LAST

Add a core event, SCX_EV_DISPATCH_KEEP_LAST, which represents how many
times a task is continued to run without ops.enqueue() when
SCX_OPS_ENQ_LAST is not set.

__scx_add_event() is used since the caller holds an rq lock,
so the preemption has already been disabled.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c