Page MenuHomeFreeBSD

thread0: Stop calling thread0 "swapper"
ClosedPublic

Authored by jhb on Tue, Dec 2, 10:44 PM.

Details

Summary

Just leave it as "kernel". While here, replace "parked" with "-" (the
typical wait channel for idle threads).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69003
Build 65886: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Tue, Dec 2, 10:44 PM

This is fine, but there are quite a few more references to "swapper" in the src tree. mac_cred_create_swapper() in particular is a misnomer now. I should have cleaned those up when I removed stack swapping.

This revision is now accepted and ready to land.Tue, Dec 2, 11:07 PM
kib added inline comments.
sys/kern/init_main.c
534

Might be call it kernel0

sys/kern/init_main.c
534

I only used the same name as that is what threads get by default (and tools like ps, etc. treat identical names as a special case). I think if we want to give it a distinct name, we should maybe use something like "boot" or "startup" that reflects its role.

This revision was automatically updated to reflect the committed changes.