]> granicus.if.org Git - spl/commit
Replace current_kernel_time() with getnstimeofday()
authorRichard Yao <ryao@gentoo.org>
Sun, 18 Aug 2013 14:51:06 +0000 (10:51 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 9 Oct 2013 20:28:30 +0000 (13:28 -0700)
commitdf2c0f18498d1c98e4f211fdb623376b18f18134
tree88f17c07a1d4ab905d7b53dbf3e7e5422570be2a
parente90856f1d2ac1c5135802b802a66e60439b2ac1a
Replace current_kernel_time() with getnstimeofday()

current_kernel_time() is used by the SPLAT, but it is not meant for
performance measurement. We modify the SPLAT to use getnstimeofday(),
which is equivalent to the gethrestime() function on Solaris.
Additionally, we update gethrestime() to invoke getnstimeofday().

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #279
module/spl/spl-time.c
module/splat/splat-kmem.c