Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Define hz2bintime = ms2bintime o hztoms.



details:   https://anonhg.NetBSD.org/src/rev/d65bc650b6d3
branches:  trunk
changeset: 827779:d65bc650b6d3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Nov 12 19:46:06 2017 +0000

description:
Define hz2bintime = ms2bintime o hztoms.

diffstat:

 sys/sys/param.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r b013d300d658 -r d65bc650b6d3 sys/sys/param.h
--- a/sys/sys/param.h   Sun Nov 12 16:33:31 2017 +0000
+++ b/sys/sys/param.h   Sun Nov 12 19:46:06 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.550 2017/11/07 19:44:05 christos Exp $     */
+/*     $NetBSD: param.h,v 1.551 2017/11/12 19:46:06 riastradh Exp $    */
 
 /*-
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -478,6 +478,8 @@
            ((t +0u) * 1000u) / hz)
 #endif
 
+#define        hz2bintime(t)   (ms2bintime(hztoms(t)))
+
 extern const int schedppq;
 extern size_t coherency_unit;
 



Home | Main Index | Thread Index | Old Index