diff options
author | thompsa <thompsa@FreeBSD.org> | 2007-12-02 08:54:50 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2007-12-02 08:54:50 +0000 |
commit | 200d23553e98c71f31c241b13845cb1f9658402b (patch) | |
tree | cc54d29d98cfd8d3ff8b116f789b605b15354485 /sys/compat/ndis/subr_ndis.c | |
parent | cf47268b027782c09dde44d0c1d11f745193ff4f (diff) | |
download | FreeBSD-src-200d23553e98c71f31c241b13845cb1f9658402b.zip FreeBSD-src-200d23553e98c71f31c241b13845cb1f9658402b.tar.gz |
Correct the calculation for the number of 100ns intervals since
January 1, 1601. The 1601 - 1970 period was in seconds rather than 100ns
units.
Remove duplication by having NdisGetCurrentSystemTime call ntoskrnl_time.
Diffstat (limited to 'sys/compat/ndis/subr_ndis.c')
-rw-r--r-- | sys/compat/ndis/subr_ndis.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/compat/ndis/subr_ndis.c b/sys/compat/ndis/subr_ndis.c index 02b034a..8d3dfd9 100644 --- a/sys/compat/ndis/subr_ndis.c +++ b/sys/compat/ndis/subr_ndis.c @@ -2661,20 +2661,11 @@ NdisMSynchronizeWithInterrupt(intr, syncfunc, syncctx) return(KeSynchronizeExecution(intr->ni_introbj, syncfunc, syncctx)); } -/* - * Return the number of 100 nanosecond intervals since - * January 1, 1601. (?!?!) - */ static void NdisGetCurrentSystemTime(tval) uint64_t *tval; { - struct timespec ts; - - nanotime(&ts); - *tval = (uint64_t)ts.tv_nsec / 100 + (uint64_t)ts.tv_sec * 10000000 + - 11644473600; - + ntoskrnl_time(tval); return; } |