]> Git Repo - J-linux.git/commitdiff
sched_ext: Replace scx_next_task_picked() with switch_class() in comment
authorZhao Mengmeng <[email protected]>
Fri, 15 Nov 2024 01:17:09 +0000 (09:17 +0800)
committerTejun Heo <[email protected]>
Fri, 15 Nov 2024 01:30:24 +0000 (15:30 -1000)
scx_next_task_picked() has been replaced with siwtch_class(), but comment
is still referencing old one, so replace it.

Signed-off-by: Zhao Mengmeng <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
kernel/sched/ext.c

index 5081fbdab74d0cf2192e9339834b3c6122a8300c..3c4a94e4258f077d3853ed2587197be6c78ce8c7 100644 (file)
@@ -2759,7 +2759,7 @@ static int balance_one(struct rq *rq, struct task_struct *prev)
                 * If the previous sched_class for the current CPU was not SCX,
                 * notify the BPF scheduler that it again has control of the
                 * core. This callback complements ->cpu_release(), which is
-                * emitted in scx_next_task_picked().
+                * emitted in switch_class().
                 */
                if (SCX_HAS_OP(cpu_acquire))
                        SCX_CALL_OP(0, cpu_acquire, cpu_of(rq), NULL);
@@ -6073,7 +6073,7 @@ static void kick_cpus_irq_workfn(struct irq_work *irq_work)
                if (cpu != cpu_of(this_rq)) {
                        /*
                         * Pairs with smp_store_release() issued by this CPU in
-                        * scx_next_task_picked() on the resched path.
+                        * switch_class() on the resched path.
                         *
                         * We busy-wait here to guarantee that no other task can
                         * be scheduled on our core before the target CPU has
This page took 0.060849 seconds and 4 git commands to generate.