sched_ext: use correct function name in pick_task_scx() warning message
authorHonglei Wang <jameshongleiwang@126.com>
Thu, 10 Oct 2024 03:34:05 +0000 (11:34 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 10 Oct 2024 16:35:28 +0000 (06:35 -1000)
pick_next_task_scx() was turned into pick_task_scx() since
commit 753e2836d139 ("sched_ext: Unify regular and core-sched pick
task paths"). Update the outdated message.

Signed-off-by: Honglei Wang <jameshongleiwang@126.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c

index 410a4df8a121e0bc81ffb1f62a81330045c074e9..c2596e7581fb31b004ed8d20fae670b1db6bfdf1 100644 (file)
@@ -2958,8 +2958,8 @@ static struct task_struct *pick_task_scx(struct rq *rq)
 
                if (unlikely(!p->scx.slice)) {
                        if (!scx_rq_bypassing(rq) && !scx_warned_zero_slice) {
-                               printk_deferred(KERN_WARNING "sched_ext: %s[%d] has zero slice in pick_next_task_scx()\n",
-                                               p->comm, p->pid);
+                               printk_deferred(KERN_WARNING "sched_ext: %s[%d] has zero slice in %s()\n",
+                                               p->comm, p->pid, __func__);
                                scx_warned_zero_slice = true;
                        }
                        p->scx.slice = SCX_SLICE_DFL;