diff options
author | jhb <jhb@FreeBSD.org> | 2012-07-13 13:24:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-07-13 13:24:33 +0000 |
commit | e4bb5cb3f00b47c0978dee1bcda1b3fe9075508e (patch) | |
tree | 34e348f0de41b94500eddd414c04c0cb471ff622 /etc/rc.d/tmp | |
parent | 2b8d56f3cffc7d6d5e967273ea2edea9c19d44ac (diff) | |
download | FreeBSD-src-e4bb5cb3f00b47c0978dee1bcda1b3fe9075508e.zip FreeBSD-src-e4bb5cb3f00b47c0978dee1bcda1b3fe9075508e.tar.gz |
Make the interval timings for EVFILT_TIMER more accurate. tvtohz() always
adds an extra tick to account for the current partial clock tick. However,
that is not appropriate for a repeating timer when the exact tvtohz() value
should be used for subsequent intervals. Fix repeating callouts for
EVFILT_TIMER by subtracting 1 tick from the tvtohz() result similar to the
fix used in realitexpire() for interval timers.
While here, update a few comments to note that if the EVFILT_TIMER code
were to move out of kern_event.c, it should move to kern_time.c (where the
interval timer code it mimics lives) rather than kern_timeout.c.
MFC after: 1 month
Diffstat (limited to 'etc/rc.d/tmp')
0 files changed, 0 insertions, 0 deletions