Skip to contentSkip to conversation

sched_ext: Return NULL in llc_span

PATCH Applied Cheng-Yang Chou 2 participants 2 messages Jun 15, 2025 – Jun 16, 2025 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched_ext: Return NULL in llc_span

Use NULL instead of 0 to signal no LLC domain, matching numa_span() and the function comment.

No functional change.

---
 kernel/sched/ext_idle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/ext_idle.c +1 -1
index b79cbdb7999a..dfacb0ad9b6f 100644
@@ -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);
 }
Signature · 1 line
2.48.1
Applied
#1 lore raw
Quoted 6 lines · Cheng-Yang Chou

Use NULL instead of 0 to signal no LLC domain, matching numa_span() and the function comment.

No functional change.

Applied to sched_ext/for-6.17.

Thanks.

Signature · 1 line
tejun