summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_time.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-03-20 14:09:06 +0000
committerphk <phk@FreeBSD.org>2000-03-20 14:09:06 +0000
commit1a34cea0e84fcb827b7af5b82e87e94c16fd337b (patch)
tree410ee16f844a72e84e097fb4326b0ddaedd2f446 /sys/kern/kern_time.c
parent1055c7c0e96ac64764f10b1d87889aa4e0ef2ddf (diff)
downloadFreeBSD-src-1a34cea0e84fcb827b7af5b82e87e94c16fd337b.zip
FreeBSD-src-1a34cea0e84fcb827b7af5b82e87e94c16fd337b.tar.gz
Isolate the Timecounter internals in their own two files.
Make the public interface more systematically named. Remove the alternate method, it doesn't do any good, only ruins performance. Add counters to profile the usage of the 8 access functions. Apply the beer-ware to my code. The weird +/- counts are caused by two repocopies behind the scenes: kern/kern_clock.c -> kern/kern_tc.c sys/time.h -> sys/timetc.h (thanks peter!)
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r--sys/kern/kern_time.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index 7c06c50..64b9f34 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -45,6 +45,7 @@
#include <sys/sysent.h>
#include <sys/proc.h>
#include <sys/time.h>
+#include <sys/timetc.h>
#include <sys/vnode.h>
#include <vm/vm.h>
#include <vm/vm_extern.h>
@@ -128,7 +129,7 @@ settime(tv)
ts.tv_sec = tv->tv_sec;
ts.tv_nsec = tv->tv_usec * 1000;
- set_timecounter(&ts);
+ tc_setclock(&ts);
(void) splsoftclock();
lease_updatetime(delta.tv_sec);
splx(s);
OpenPOWER on IntegriCloud