aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/ndis
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-26 15:38:17 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-26 15:38:17 +0000
commit55e0987aea18d0b97fc0444c7678cbca1c7761d0 (patch)
tree1bff72784c0591a61e4e16e97fae48d0614891dc /sys/compat/ndis
parentc9087a9303414611bc4cbb6feae39d5daecb745f (diff)
downloadsrc-55e0987aea18d0b97fc0444c7678cbca1c7761d0.tar.gz
src-55e0987aea18d0b97fc0444c7678cbca1c7761d0.zip
sys: extend use of the howmany() macro when available.
We have a howmany() macro in the <sys/param.h> header that is convenient to re-use as it makes things easier to read.
Notes
Notes: svn path=/head/; revision=298649
Diffstat (limited to 'sys/compat/ndis')
-rw-r--r--sys/compat/ndis/subr_ntoskrnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c
index 95670ba5dfde..f6d5ac4fe82a 100644
--- a/sys/compat/ndis/subr_ntoskrnl.c
+++ b/sys/compat/ndis/subr_ntoskrnl.c
@@ -4207,7 +4207,7 @@ KeQueryInterruptTime(void)
ticks = tvtohz(&tv);
- return ticks * ((10000000 + hz - 1) / hz);
+ return ticks * howmany(10000000, hz);
}
static struct thread *