svn commit: r228115 - head/sys/kern
Lawrence Stewart
lstewart at FreeBSD.org
Tue Nov 29 06:12:20 UTC 2011
Author: lstewart
Date: Tue Nov 29 06:12:19 2011
New Revision: 228115
URL: http://svn.freebsd.org/changeset/base/228115
Log:
Fix an oversight in r227747 by calling fbclock_bin{up}time() directly from the
fbclock_{nanouptime|microuptime|bintime|nanotime|microtime}() functions to avoid
indirecting through a sysclock_ops wrapper function.
Committed on behalf of Julien Ridoux and Darryl Veitch from the University of
Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward
Clock Synchronization Algorithms" project.
For more information, see http://www.synclab.org/radclock/
Submitted by: Julien Ridoux (jridoux at unimelb edu au)
Modified:
head/sys/kern/kern_tc.c
Modified: head/sys/kern/kern_tc.c
==============================================================================
--- head/sys/kern/kern_tc.c Tue Nov 29 04:50:57 2011 (r228114)
+++ head/sys/kern/kern_tc.c Tue Nov 29 06:12:19 2011 (r228115)
@@ -197,7 +197,7 @@ fbclock_nanouptime(struct timespec *tsp)
{
struct bintime bt;
- binuptime(&bt);
+ fbclock_binuptime(&bt);
bintime2timespec(&bt, tsp);
}
@@ -206,7 +206,7 @@ fbclock_microuptime(struct timeval *tvp)
{
struct bintime bt;
- binuptime(&bt);
+ fbclock_binuptime(&bt);
bintime2timeval(&bt, tvp);
}
@@ -214,7 +214,7 @@ static void
fbclock_bintime(struct bintime *bt)
{
- binuptime(bt);
+ fbclock_binuptime(bt);
bintime_add(bt, &boottimebin);
}
@@ -223,7 +223,7 @@ fbclock_nanotime(struct timespec *tsp)
{
struct bintime bt;
- bintime(&bt);
+ fbclock_bintime(&bt);
bintime2timespec(&bt, tsp);
}
@@ -232,7 +232,7 @@ fbclock_microtime(struct timeval *tvp)
{
struct bintime bt;
- bintime(&bt);
+ fbclock_bintime(&bt);
bintime2timeval(&bt, tvp);
}
More information about the svn-src-head
mailing list