summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-04 10:15:19 +0000
committerphk <phk@FreeBSD.org>2002-09-04 10:15:19 +0000
commit8ceeefb3da4a98a7b2631b976210c60828fecf56 (patch)
tree1686e2061db64b4267c1e8e3c03c6a9dfadd5aee /sys/kern/kern_clock.c
parentf230fa27fb7dfbf8aa6fc49c6b846e56a35aada0 (diff)
downloadFreeBSD-src-8ceeefb3da4a98a7b2631b976210c60828fecf56.zip
FreeBSD-src-8ceeefb3da4a98a7b2631b976210c60828fecf56.tar.gz
Give up on calling tc_ticktock() from a timeout, we have timeout
functions which run for several milliseconds at a time and getting in queue behind one or more of those makes us miss our rewind. Instead call it from hardclock() like we used to do, but retain the prescaler so we still cope with high HZ values.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 2e7ca8b..e50b731 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -59,6 +59,7 @@
#include <sys/sysctl.h>
#include <sys/bus.h>
#include <sys/interrupt.h>
+#include <sys/timetc.h>
#include <machine/cpu.h>
#include <machine/limits.h>
@@ -208,6 +209,7 @@ hardclock(frame)
hardclock_process(curthread, CLKF_USERMODE(frame));
mtx_unlock_spin_flags(&sched_lock, MTX_QUIET);
+ tc_ticktock();
/*
* If no separate statistics clock is available, run it from here.
*
OpenPOWER on IntegriCloud