summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-09-16 00:00:41 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-09-16 00:00:41 +0000
commitacbd986476d66061eb89b637a8dc33e4de0b822c (patch)
tree852eca58fb28833d25a73cecc806bf5c4b605904 /usr.bin
parenta2ef286e6ffb4504164937642295d3772e98f8d7 (diff)
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 'usr.bin')
0 files changed, 0 insertions, 0 deletions