diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2025-12-04 19:52:59 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2025-12-04 19:52:59 +0000 |
| commit | 431b3b224db2a69d09c359ce1cfb37ba3da4705c (patch) | |
| tree | e8c4f11b7414a9efeafaebd898df46119e688a38 | |
| parent | 97939604f447de0d06e6cc2c15f19c6f7be30cd2 (diff) | |
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
| -rw-r--r-- | sys/kern/init_main.c | 6 |
1 files 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); |
