From 75ded7d59882530164622e42f43c5cbb2af26bda Mon Sep 17 00:00:00 2001 From: mlelstv Date: Mon, 19 Sep 2022 22:30:19 +0000 Subject: [PATCH] Reference kernel-wide hz constant instead of using a private but possibly different value. --- external/cddl/osnet/sys/sys/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/cddl/osnet/sys/sys/time.h b/external/cddl/osnet/sys/sys/time.h index f111cc4e995b..10827a013a2c 100644 --- a/external/cddl/osnet/sys/sys/time.h +++ b/external/cddl/osnet/sys/sys/time.h @@ -1,4 +1,4 @@ -/* $NetBSD: time.h,v 1.13 2021/08/29 08:43:12 christos Exp $ */ +/* $NetBSD: time.h,v 1.14 2022/09/19 22:30:19 mlelstv Exp $ */ /*- * Copyright (c) 2007 Pawel Jakub Dawidek @@ -82,7 +82,7 @@ static inline int64_t ddi_get_lbolt64(void) { struct timespec ts; - const int hz = 100; + extern int hz; getnanouptime(&ts); return (int64_t)(SEC_TO_TICK(ts.tv_sec) + NSEC_TO_TICK(ts.tv_nsec));