Skip to content

Commit 8ce8d05

Browse files
cloehlehtejun
authored andcommitted
sched_ext: Documentation: Mention scheduling class precedence
Mention the scheduling class precedence of fair and sched_ext to clear up how sched_ext partial mode works. Signed-off-by: Christian Loehle <christian.loehle@arm.com> Acked-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 70f54f6 commit 8ce8d05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Documentation/scheduler/sched-ext.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ in ``ops->flags``, all ``SCHED_NORMAL``, ``SCHED_BATCH``, ``SCHED_IDLE``, and
5858
However, when the BPF scheduler is loaded and ``SCX_OPS_SWITCH_PARTIAL`` is
5959
set in ``ops->flags``, only tasks with the ``SCHED_EXT`` policy are scheduled
6060
by sched_ext, while tasks with ``SCHED_NORMAL``, ``SCHED_BATCH`` and
61-
``SCHED_IDLE`` policies are scheduled by the fair-class scheduler.
61+
``SCHED_IDLE`` policies are scheduled by the fair-class scheduler which has
62+
higher sched_class precedence than ``SCHED_EXT``.
6263

6364
Terminating the sched_ext scheduler program, triggering `SysRq-S`, or
6465
detection of any internal error including stalled runnable tasks aborts the

0 commit comments

Comments
 (0)