summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-26 12:37:36 +0000
committerphk <phk@FreeBSD.org>2002-04-26 12:37:36 +0000
commit04257819a4d326980d051f445ae317d8cd16374b (patch)
tree4e6b9f61f280b54de6b94c7eece10edcfaea8477 /sys/kern/kern_clock.c
parentc9e55ed3c8a1963b73b29b8b053a687385d658f6 (diff)
downloadFreeBSD-src-04257819a4d326980d051f445ae317d8cd16374b.zip
FreeBSD-src-04257819a4d326980d051f445ae317d8cd16374b.tar.gz
Move the winding of timecounters out of hardclock and into a normal
timeout loop. Limit the rate at which we wind the timecounters to approx 1000 Hz. This limits the precision of the get{bin,nano,micro}[up]time(9) functions to roughly a millisecond.
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index e613eb6..92175b8 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -53,8 +53,6 @@
#include <sys/resourcevar.h>
#include <sys/signalvar.h>
#include <sys/smp.h>
-#include <sys/timetc.h>
-#include <sys/timepps.h>
#include <vm/vm.h>
#include <vm/pmap.h>
#include <vm/vm_map.h>
@@ -218,7 +216,6 @@ hardclock(frame)
if (stathz == 0)
statclock(frame);
- tc_windup();
#ifdef DEVICE_POLLING
hardclock_device_poll(); /* this is very short and quick */
#endif /* DEVICE_POLLING */
OpenPOWER on IntegriCloud