diff options
author | 2021-01-02 03:23:59 +0000 | |
---|---|---|
committer | 2021-01-02 03:23:59 +0000 | |
commit | cf76921f1fa0fb7980145d9ed240a3541ff2e1fc (patch) | |
tree | 61215797571e7f578e268e582a6bec7586c83947 /gnu/llvm/libcxx/src | |
parent | bpf(4): remove ticks (diff) | |
download | wireguard-openbsd-cf76921f1fa0fb7980145d9ed240a3541ff2e1fc.tar.xz wireguard-openbsd-cf76921f1fa0fb7980145d9ed240a3541ff2e1fc.zip |
pool(9): remove ticks
Change the pool(9) timeouts to use the system uptime instead of ticks.
- Change the timeouts from variables to macros so we can use
SEC_TO_NSEC(). This means these timeouts are no longer patchable
via ddb(4). dlg@ does not think this will be a problem, as the
timeout intervals have not changed in years.
- Use low-res time to keep things fast. Add a local copy of
getnsecuptime() to subr_pool.c to keep the diff small. We will need
to move getnsecuptime() into kern_tc.c and document it later if we
ever have other users elsewhere in the kernel.
- Rename ph_tick -> ph_timestamp and pr_cache_tick -> pr_cache_timestamp.
Prompted by tedu@ some time ago, but the effort stalled (may have been
my fault). Input from kettenis@ and dlg@.
Special thanks to mpi@ for help with struct shuffling. This change
does not increase the size of struct pool_page_header or struct pool.
ok dlg@ mpi@
Diffstat (limited to 'gnu/llvm/libcxx/src')
0 files changed, 0 insertions, 0 deletions