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)
This commit is contained in:
parent
8480e502f4
commit
c2a4ee9906
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228115
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user