Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys Reference kernel-wide hz constan...
details: https://anonhg.NetBSD.org/src/rev/0f4ed5a7514c
branches: trunk
changeset: 370159:0f4ed5a7514c
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Mon Sep 19 22:30:19 2022 +0000
description:
Reference kernel-wide hz constant instead of using a private but possibly
different value.
diffstat:
external/cddl/osnet/sys/sys/time.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r e65ded2988ed -r 0f4ed5a7514c external/cddl/osnet/sys/sys/time.h
--- a/external/cddl/osnet/sys/sys/time.h Mon Sep 19 18:48:30 2022 +0000
+++ b/external/cddl/osnet/sys/sys/time.h Mon Sep 19 22:30:19 2022 +0000
@@ -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 <pjd%FreeBSD.org@localhost>
@@ -82,7 +82,7 @@
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));
Home |
Main Index |
Thread Index |
Old Index