summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-09-16 00:00:40 +0000
committercheloha <cheloha@openbsd.org>2020-09-16 00:00:40 +0000
commit97c55bccda719b6393e9cf9bae335fc9f9ec1dc8 (patch)
treeb06f992acc478aee1fe331dfea0ad7e4d646ae39 /lib/libssl/ssl_lib.c
parentrework a sentence in abl.4, and add an entry for it to acpi.4; (diff)
downloadwireguard-openbsd-97c55bccda719b6393e9cf9bae335fc9f9ec1dc8.tar.xz
wireguard-openbsd-97c55bccda719b6393e9cf9bae335fc9f9ec1dc8.zip
timecounting: provide a naptime variable for userspace via kvm_read(3)
vmstat(8) uses kvm_read(3) to extract the naptime from the kernel. Problem is, I deleted `naptime' from the global namespace when I moved it into the timehands. This patch restores it. It gets updated from tc_windup(). Only userspace should use it, and only when the kernel is dead. We need to tweak a variable in tc_setclock() to avoid shadowing the (once again) global naptime.
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions