The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=431b3b224db2a69d09c359ce1cfb37ba3da4705c
commit 431b3b224db2a69d09c359ce1cfb37ba3da4705c Author: John Baldwin <[email protected]> AuthorDate: 2025-12-04 19:52:59 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2025-12-04 19:52:59 +0000 thread0: Stop calling thread0 "swapper" Just leave it as "kernel". While here, replace "parked" with "-" (the typical wait channel for idle threads). Reviewed by: olce, kib, markj Differential Revision: https://reviews.freebsd.org/D54039 --- sys/kern/init_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 6612ac685936..a2898f75a795 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -336,7 +336,7 @@ mi_startup(void) * the need arises. */ for (;;) - tsleep(__builtin_frame_address(0), PNOLOCK, "parked", 0); + tsleep(__builtin_frame_address(0), PNOLOCK, "-", 0); } static void @@ -486,7 +486,7 @@ proc0_init(void *dummy __unused) schedinit(); /* scheduler gets its house in order */ /* - * Create process 0 (the swapper). + * Create process 0. */ LIST_INSERT_HEAD(&allproc, p, p_list); LIST_INSERT_HEAD(PIDHASH(0), p, p_hash); @@ -531,7 +531,7 @@ proc0_init(void *dummy __unused) LIST_INIT(&p->p_reaplist); strncpy(p->p_comm, "kernel", sizeof (p->p_comm)); - strncpy(td->td_name, "swapper", sizeof (td->td_name)); + strncpy(td->td_name, "kernel", sizeof (td->td_name)); callout_init_mtx(&p->p_itcallout, &p->p_mtx, 0); callout_init_mtx(&p->p_limco, &p->p_mtx, 0);
