]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched_ext: Clarify sched_ext_ops table for userland scheduler
authorChangwoo Min <multics69@gmail.com>
Sat, 9 Nov 2024 02:25:14 +0000 (11:25 +0900)
committerTejun Heo <tj@kernel.org>
Sat, 9 Nov 2024 02:40:27 +0000 (16:40 -1000)
Update the comments in sched_ext_ops to clarify this table is for
a BPF scheduler and a userland scheduler should also rely on the
sched_ext_ops table through the BPF scheduler.

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

index 02f39314ef8ae293dade1568c57712bd8d4e7c70..f1a185ab5fbc7ef41b21bd20c2cbee33fb32a841 100644 (file)
@@ -199,8 +199,10 @@ struct scx_dump_ctx {
 /**
  * struct sched_ext_ops - Operation table for BPF scheduler implementation
  *
- * Userland can implement an arbitrary scheduling policy by implementing and
- * loading operations in this table.
+ * A BPF scheduler can implement an arbitrary scheduling policy by
+ * implementing and loading operations in this table. Note that a userland
+ * scheduling policy can also be implemented using the BPF scheduler
+ * as a shim layer.
  */
 struct sched_ext_ops {
        /**