CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/09/15 18:00:40
Modified files:
sys/kern : kern_tc.c
Log message:
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.