Page MenuHomeFreeBSD

thread0: Stop calling thread0 "swapper"
ClosedPublic

Authored by jhb on Tue, Dec 2, 10:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 20, 10:17 PM
Unknown Object (File)
Sat, Dec 13, 8:47 PM
Unknown Object (File)
Fri, Dec 12, 7:15 PM
Unknown Object (File)
Fri, Dec 12, 9:59 AM
Unknown Object (File)
Thu, Dec 11, 3:01 PM
Unknown Object (File)
Thu, Dec 11, 6:38 AM
Unknown Object (File)
Mon, Dec 8, 10:06 PM
Subscribers

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 Not Applicable
Unit
Tests Not Applicable

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.