[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250615200414.42827-1-yphbchou0911@gmail.com>
Date: Mon, 16 Jun 2025 04:04:14 +0800
From: Cheng-Yang Chou <yphbchou0911@...il.com>
To: linux-kernel@...r.kernel.org
Cc: tj@...nel.org,
void@...ifault.com,
arighi@...dia.com,
changwoo@...lia.com,
jserv@...s.ncku.edu.tw,
yphbchou0911@...il.com
Subject: [PATCH] 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.
Signed-off-by: Cheng-Yang Chou <yphbchou0911@...il.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
Powered by blists - more mailing lists