summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-05-09 17:42:19 +0000
committerderaadt <deraadt@openbsd.org>2007-05-09 17:42:19 +0000
commit10fe8a05c762d5b8d4346a3a0f7029bac52f3d6e (patch)
treef37021752ce2648f5c62f40d564cf8d04f9554ac /sys/kern/kern_tc.c
parentRevert rev 1.116. For some reason this caused the device to do DMA from/to (diff)
downloadwireguard-openbsd-10fe8a05c762d5b8d4346a3a0f7029bac52f3d6e.tar.xz
wireguard-openbsd-10fe8a05c762d5b8d4346a3a0f7029bac52f3d6e.zip
unused apis, very dangerous: getbinuptime() getbintime(), ok art
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r--sys/kern/kern_tc.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index ad815dc1a57..2257eea91b7 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $OpenBSD: kern_tc.c,v 1.8 2007/03/31 14:46:48 kettenis Exp $
+ * $OpenBSD: kern_tc.c,v 1.9 2007/05/09 17:42:19 deraadt Exp $
* $FreeBSD: src/sys/kern/kern_tc.c,v 1.148 2003/03/18 08:45:23 phk Exp $
*/
@@ -179,19 +179,6 @@ microtime(struct timeval *tvp)
}
void
-getbinuptime(struct bintime *bt)
-{
- struct timehands *th;
- u_int gen;
-
- do {
- th = timehands;
- gen = th->th_generation;
- *bt = th->th_offset;
- } while (gen == 0 || gen != th->th_generation);
-}
-
-void
getnanouptime(struct timespec *tsp)
{
struct timehands *th;
@@ -218,20 +205,6 @@ getmicrouptime(struct timeval *tvp)
}
void
-getbintime(struct bintime *bt)
-{
- struct timehands *th;
- u_int gen;
-
- do {
- th = timehands;
- gen = th->th_generation;
- *bt = th->th_offset;
- } while (gen == 0 || gen != th->th_generation);
- bintime_add(bt, &boottimebin);
-}
-
-void
getnanotime(struct timespec *tsp)
{
struct timehands *th;