]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched_ext: Use str_enabled_disabled() helper in update_selcpu_topology()
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 22 Dec 2024 23:31:10 +0000 (00:31 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 24 Dec 2024 20:47:55 +0000 (10:47 -1000)
Remove hard-coded strings by using the str_enabled_disabled() helper
function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c

index 54e659ba9476255d9d9c8f4b9c9c969a9d41b468..7b229a4fb083bc25eaaeb011c04059b8b2442465 100644 (file)
@@ -3376,9 +3376,9 @@ static void update_selcpu_topology(void)
        rcu_read_unlock();
 
        pr_debug("sched_ext: LLC idle selection %s\n",
-                enable_llc ? "enabled" : "disabled");
+                str_enabled_disabled(enable_llc));
        pr_debug("sched_ext: NUMA idle selection %s\n",
-                enable_numa ? "enabled" : "disabled");
+                str_enabled_disabled(enable_numa));
 
        if (enable_llc)
                static_branch_enable_cpuslocked(&scx_selcpu_topo_llc);