diff options
author | phk <phk@FreeBSD.org> | 2000-03-20 14:09:06 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-03-20 14:09:06 +0000 |
commit | 1a34cea0e84fcb827b7af5b82e87e94c16fd337b (patch) | |
tree | 410ee16f844a72e84e097fb4326b0ddaedd2f446 /sys/pci/xrpu.c | |
parent | 1055c7c0e96ac64764f10b1d87889aa4e0ef2ddf (diff) | |
download | FreeBSD-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/pci/xrpu.c')
-rw-r--r-- | sys/pci/xrpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c index 44d2b76..9688caa 100644 --- a/sys/pci/xrpu.c +++ b/sys/pci/xrpu.c @@ -22,6 +22,7 @@ #include <sys/conf.h> #include <sys/kernel.h> #include <sys/malloc.h> +#include <sys/timetc.h> #include <sys/timepps.h> #include <sys/xrpuio.h> #include <sys/bus.h> @@ -188,7 +189,7 @@ xrpu_ioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *pr) pps_init(&sc->pps[i]); } sc->mode = TIMECOUNTER; - init_timecounter(&sc->tc); + tc_init(&sc->tc); return (0); } error = ENOTTY; |