git: 79ca9f787ca9 - main - sched_ule: Use TDQ_CPU() macro instead of fiddling with DPCPU
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Oct 2026 09:07:27 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=79ca9f787ca92018a1374242bb77252af6fce0d0
commit 79ca9f787ca92018a1374242bb77252af6fce0d0
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-10-13 08:28:18 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-10-19 09:06:55 +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
---
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 ef11c1cdd109..63a3e0e66d66 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)