Skip to content

Commit 431b3b2

Browse files
committed
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
1 parent 9793960 commit 431b3b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sys/kern/init_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ mi_startup(void)
336336
* the need arises.
337337
*/
338338
for (;;)
339-
tsleep(__builtin_frame_address(0), PNOLOCK, "parked", 0);
339+
tsleep(__builtin_frame_address(0), PNOLOCK, "-", 0);
340340
}
341341

342342
static void
@@ -486,7 +486,7 @@ proc0_init(void *dummy __unused)
486486
schedinit(); /* scheduler gets its house in order */
487487

488488
/*
489-
* Create process 0 (the swapper).
489+
* Create process 0.
490490
*/
491491
LIST_INSERT_HEAD(&allproc, p, p_list);
492492
LIST_INSERT_HEAD(PIDHASH(0), p, p_hash);
@@ -531,7 +531,7 @@ proc0_init(void *dummy __unused)
531531
LIST_INIT(&p->p_reaplist);
532532

533533
strncpy(p->p_comm, "kernel", sizeof (p->p_comm));
534-
strncpy(td->td_name, "swapper", sizeof (td->td_name));
534+
strncpy(td->td_name, "kernel", sizeof (td->td_name));
535535

536536
callout_init_mtx(&p->p_itcallout, &p->p_mtx, 0);
537537
callout_init_mtx(&p->p_limco, &p->p_mtx, 0);

0 commit comments

Comments
 (0)