All in-tree consumers have been converted to callout(9).
Details
- Reviewers
kib markj - Group Reviewers
manpages - Commits
- rS355732: Remove the deprecated timeout(9) interface.
- make tinderbox
- booted amd64 in a VM
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Will need a __FreeBSD_version bump probably.
sys/kern/kern_timeout.c | ||
---|---|---|
386 ↗ | (On Diff #65026) | It is not clear if we want to really treat the soft clock thread on CPU 0 different going forward. If not, we would retire cc_default_cpu using PCPU_GET(cpuid) instead and merge these two tunable to be a single tunable perhaps. |
1327 ↗ | (On Diff #65026) | For this commit I should drop the XXX, however, there is an open question I think perhaps as a followup if we should not force timeouts onto CPU 0 but just let them use whatever CPU they are created on as the default? |
share/man/man9/callout.9 | ||
---|---|---|
92 ↗ | (On Diff #65027) | This looks very much as a material for other commit ('remove timeout_t typedef'), but again it raises a question why remove this useful typedef. |
sys/kern/kern_timeout.c | ||
386 ↗ | (On Diff #65026) | I do not see much sense in cc_default_cpu. We use curcpu for callouts otherwise, and I believe we should just extend the practice there. |
share/man/man9/callout.9 | ||
---|---|---|
804–806 ↗ | (On Diff #65027) | Maybe throw a reference in a .Sh HISTORY section? Not a big deal. |
sys/kern/kern_timeout.c | ||
1327 ↗ | (On Diff #65026) | There may be some power saving benefit on (relatively common) 2-4? 8? core mobile hardware of coalescing callouts onto a single core, because you can wake fewer cores less often. On the other hand, on big machines with a lot of callouts you can make a big queue on cpu 0. I might coalesce nonspecific callouts to cpu % 4 or cpu % 8 to sort of meet halfway? I haven't thought that through thoroughly. |
share/man/man9/callout.9 | ||
---|---|---|
32 ↗ | (On Diff #65481) | Oops, that's due to how I rebased this tree (by copying the old one off and pulling in the updated timeout.9 after the callout_func_t commit then copying this back over). I will bump it to the real date at commit time. |