summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-07-19 23:58:51 +0000
committercheloha <cheloha@openbsd.org>2020-07-19 23:58:51 +0000
commit1988fbea158e33c5dc0e8ffcdafc20de9ac0a5d5 (patch)
tree9f334410385f71e724c6c766c46099a2d45922fa /sys/kern/kern_tc.c
parentkexec_subr.S will need assym.h built beforehands (diff)
downloadwireguard-openbsd-1988fbea158e33c5dc0e8ffcdafc20de9ac0a5d5.tar.xz
wireguard-openbsd-1988fbea158e33c5dc0e8ffcdafc20de9ac0a5d5.zip
tc_windup(): remove misleading comment about getmicrotime(9)
Using getmicrotime(9) or getnanotime(9) is perfectly appropriate in certain contexts. The programmer needs to weigh the overhead savings against the reduced accuracy and decide whether the low-res interfaces are appropriate.
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r--sys/kern/kern_tc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 2061bd1314f..9767772ae43 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tc.c,v 1.64 2020/07/17 01:36:41 gkoehler Exp $ */
+/* $OpenBSD: kern_tc.c,v 1.65 2020/07/19 23:58:51 cheloha Exp $ */
/*
* Copyright (c) 2000 Poul-Henning Kamp <phk@FreeBSD.org>
@@ -644,7 +644,6 @@ tc_windup(struct bintime *new_boottime, struct bintime *new_offset,
}
/* Update the UTC timestamps used by the get*() functions. */
- /* XXX shouldn't do this here. Should force non-`get' versions. */
bintimeadd(&th->th_boottime, &th->th_offset, &bt);
BINTIME_TO_TIMEVAL(&bt, &th->th_microtime);
BINTIME_TO_TIMESPEC(&bt, &th->th_nanotime);