summaryrefslogtreecommitdiffstats
path: root/sys/cddl/compat/opensolaris/sys/time.h
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2011-05-16 15:29:59 +0000
committeravg <avg@FreeBSD.org>2011-05-16 15:29:59 +0000
commit576b51ab8f786d77da023fb2e83fdc1fb0c7abf6 (patch)
treeb2c4b470c3bfa995c74975f76d90d27867ff83a4 /sys/cddl/compat/opensolaris/sys/time.h
parent90fe5b5b3e46a2da849cf8d0bba00f4834d39398 (diff)
downloadFreeBSD-src-576b51ab8f786d77da023fb2e83fdc1fb0c7abf6.zip
FreeBSD-src-576b51ab8f786d77da023fb2e83fdc1fb0c7abf6.tar.gz
better integrate cyclic module with clocksource/eventtimer subsystem
Now in the case when one-shot timers are used cyclic events should fire closer to theier scheduled times. As the cyclic is currently used only to drive DTrace profile provider, this is the area where the change makes a difference. Reviewed by: mav (earlier version, a while ago) X-MFC after: clocksource/eventtimer subsystem
Diffstat (limited to 'sys/cddl/compat/opensolaris/sys/time.h')
-rw-r--r--sys/cddl/compat/opensolaris/sys/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/compat/opensolaris/sys/time.h b/sys/cddl/compat/opensolaris/sys/time.h
index 05db50e..cd5e695 100644
--- a/sys/cddl/compat/opensolaris/sys/time.h
+++ b/sys/cddl/compat/opensolaris/sys/time.h
@@ -53,7 +53,7 @@ gethrtime(void) {
struct timespec ts;
hrtime_t nsec;
- getnanouptime(&ts);
+ nanouptime(&ts);
nsec = (hrtime_t)ts.tv_sec * NANOSEC + ts.tv_nsec;
return (nsec);
}
OpenPOWER on IntegriCloud