]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched_ext: Return NULL in llc_span
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Sun, 15 Jun 2025 20:04:14 +0000 (04:04 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 16 Jun 2025 17:32:37 +0000 (07:32 -1000)
Use NULL instead of 0 to signal no LLC domain, matching numa_span() and
the function comment.

No functional change.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext_idle.c

index b79cbdb7999a2059d7054e953d3235b1dd791293..dfacb0ad9b6f1a5d87fd00c55e8d0e6b3ea40c59 100644 (file)
@@ -249,7 +249,7 @@ static struct cpumask *llc_span(s32 cpu)
 
        sd = rcu_dereference(per_cpu(sd_llc, cpu));
        if (!sd)
-               return 0;
+               return NULL;
 
        return sched_domain_span(sd);
 }