sched_ext: Clarify sched_ext_ops table for userland scheduler
PATCH 1/1 sched_ext: Clarify sched_ext_ops table for userland scheduler
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 <[email protected]>
--- kernel/sched/ext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
kernel/sched/ext.c +4 -2
@@ -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 {/**
Signature · 1 line
2.47.0
Tejun Heo
AppliedQuoted 5 lines · Changwoo Min
Update the comments in
sched_ext_opsto clarify this table is for a BPF scheduler and a userland scheduler should also rely on thesched_ext_opstable through the BPF scheduler.Signed-off-by Changwoo Min <[email protected]>
Applied to sched_ext/for-6.13.
Thanks.
Signature · 1 line
tejun