git: f27e4afe6486 - stable/15 - sched_ule: Use TDQ_CPU() macro instead of fiddling with DPCPU
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 Nov 2026 13:25:13 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=f27e4afe6486b9bfd1733e8cbbd432eaef60ff76
commit f27e4afe6486b9bfd1733e8cbbd432eaef60ff76
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-10-13 08:28:18 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-11-04 13:21:36 +0000
sched_ule: Use TDQ_CPU() macro instead of fiddling with DPCPU
No functional change (intended).
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 79ca9f787ca92018a1374242bb77252af6fce0d0)
---
sys/kern/sched_ule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index d606845fc58c..ac19730cc262 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1620,7 +1620,7 @@ sched_setup_smp(void)
int i;
CPU_FOREACH(i) {
- tdq = DPCPU_ID_PTR(i, tdq);
+ tdq = TDQ_CPU(i);
tdq_setup(tdq, i);
tdq->tdq_cg = smp_topo_find(cpu_top, i);
if (tdq->tdq_cg == NULL)