]> granicus.if.org Git - spl/commit
Add msec/usec/nsec to tick convertors
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 30 Apr 2013 16:46:33 +0000 (09:46 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 1 May 2013 19:07:56 +0000 (12:07 -0700)
commitf6437b60c2b2bf514a0c2e82f51fde5803b57b93
tree8f843dfc39a5dea2192422637088dd08f2612b1c
parent8bbda8df3ea618cd994d477d6d5c0e0acec80089
Add msec/usec/nsec to tick convertors

Add wrappers for the Solaris MSEC_TO_TICK, USEC_TO_TICK, and
NSEC_TO_TICK conversion functions.  They are mapped directly to
their Linux counterparts with the exception of NSEC_TO_TICK
can cannot use usecs_to_jiffies() because it is not exported
by the kernel.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/timer.h