Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Nov 2011 06:12:19 +0000 (UTC)
From:      Lawrence Stewart <lstewart@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228115 - head/sys/kern
Message-ID:  <201111290612.pAT6CJ5P026827@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111290612.pAT6CJ5P026827>