Skip to content

Commit 6b8950e

Browse files
Zhao Mengmenghtejun
authored andcommitted
sched_ext: Replace scx_next_task_picked() with switch_class() in comment
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]>
1 parent 5cbb302 commit 6b8950e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/sched/ext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@ static int balance_one(struct rq *rq, struct task_struct *prev)
27592759
* If the previous sched_class for the current CPU was not SCX,
27602760
* notify the BPF scheduler that it again has control of the
27612761
* core. This callback complements ->cpu_release(), which is
2762-
* emitted in scx_next_task_picked().
2762+
* emitted in switch_class().
27632763
*/
27642764
if (SCX_HAS_OP(cpu_acquire))
27652765
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)
60736073
if (cpu != cpu_of(this_rq)) {
60746074
/*
60756075
* Pairs with smp_store_release() issued by this CPU in
6076-
* scx_next_task_picked() on the resched path.
6076+
* switch_class() on the resched path.
60776077
*
60786078
* We busy-wait here to guarantee that no other task can
60796079
* be scheduled on our core before the target CPU has

0 commit comments

Comments
 (0)