* [PATCH] sched_ext: Return NULL in llc_span
@ 2025-06-15 20:04 Cheng-Yang Chou
2025-06-16 17:33 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Cheng-Yang Chou @ 2025-06-15 20:04 UTC (permalink / raw)
To: linux-kernel; +Cc: tj, void, arighi, changwoo, jserv, yphbchou0911
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>
---
kernel/sched/ext_idle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/ext_idle.c b/kernel/sched/ext_idle.c
index b79cbdb7999a..dfacb0ad9b6f 100644
--- a/kernel/sched/ext_idle.c
+++ b/kernel/sched/ext_idle.c
@@ -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);
}
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sched_ext: Return NULL in llc_span
2025-06-15 20:04 [PATCH] sched_ext: Return NULL in llc_span Cheng-Yang Chou
@ 2025-06-16 17:33 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2025-06-16 17:33 UTC (permalink / raw)
To: Cheng-Yang Chou; +Cc: linux-kernel, void, arighi, changwoo, jserv
On Mon, Jun 16, 2025 at 04:04:14AM +0800, Cheng-Yang Chou wrote:
> 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>
Applied to sched_ext/for-6.17.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-16 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-15 20:04 [PATCH] sched_ext: Return NULL in llc_span Cheng-Yang Chou
2025-06-16 17:33 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).