Module Name:    src
Committed By:   mlelstv
Date:           Mon Sep 19 22:30:19 UTC 2022

Modified Files:
        src/external/cddl/osnet/sys/sys: time.h

Log Message:
Reference kernel-wide hz constant instead of using a private but possibly
different value.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/cddl/osnet/sys/sys/time.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/sys/sys/time.h
diff -u src/external/cddl/osnet/sys/sys/time.h:1.13 src/external/cddl/osnet/sys/sys/time.h:1.14
--- src/external/cddl/osnet/sys/sys/time.h:1.13	Sun Aug 29 08:43:12 2021
+++ src/external/cddl/osnet/sys/sys/time.h	Mon Sep 19 22:30:19 2022
@@ -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 <p...@freebsd.org>
@@ -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));

Reply via email to