summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_tc.c
diff options
context:
space:
mode:
authorlstewart <lstewart@FreeBSD.org>2011-11-29 06:53:36 +0000
committerlstewart <lstewart@FreeBSD.org>2011-11-29 06:53:36 +0000
commitd76140d56b49a0146cbcc625f37cbd69ddb014c9 (patch)
treec64d1e3441040861019b606e1639dec2f4fc11c9 /sys/kern/kern_tc.c
parent4eea9e0d09881cbd3972ea1e76f791727cd3e911 (diff)
downloadFreeBSD-src-d76140d56b49a0146cbcc625f37cbd69ddb014c9.zip
FreeBSD-src-d76140d56b49a0146cbcc625f37cbd69ddb014c9.tar.gz
Make the fbclock_[get]{bin,nano,micro}[up]time() function prototypes public so
that new APIs with some performance sensitivity can be built on top of them. These functions should not be called directly except in special circumstances. 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/ Discussed with: Julien Ridoux (jridoux at unimelb edu au) Submitted by: Julien Ridoux (jridoux at unimelb edu au)
Diffstat (limited to 'sys/kern/kern_tc.c')
-rw-r--r--sys/kern/kern_tc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 7026e5a..11c66e0 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -178,7 +178,7 @@ tc_delta(struct timehands *th)
*/
#ifdef FFCLOCK
-static void
+void
fbclock_binuptime(struct bintime *bt)
{
struct timehands *th;
@@ -192,7 +192,7 @@ fbclock_binuptime(struct bintime *bt)
} while (gen == 0 || gen != th->th_generation);
}
-static void
+void
fbclock_nanouptime(struct timespec *tsp)
{
struct bintime bt;
@@ -201,7 +201,7 @@ fbclock_nanouptime(struct timespec *tsp)
bintime2timespec(&bt, tsp);
}
-static void
+void
fbclock_microuptime(struct timeval *tvp)
{
struct bintime bt;
@@ -210,7 +210,7 @@ fbclock_microuptime(struct timeval *tvp)
bintime2timeval(&bt, tvp);
}
-static void
+void
fbclock_bintime(struct bintime *bt)
{
@@ -218,7 +218,7 @@ fbclock_bintime(struct bintime *bt)
bintime_add(bt, &boottimebin);
}
-static void
+void
fbclock_nanotime(struct timespec *tsp)
{
struct bintime bt;
@@ -227,7 +227,7 @@ fbclock_nanotime(struct timespec *tsp)
bintime2timespec(&bt, tsp);
}
-static void
+void
fbclock_microtime(struct timeval *tvp)
{
struct bintime bt;
@@ -236,7 +236,7 @@ fbclock_microtime(struct timeval *tvp)
bintime2timeval(&bt, tvp);
}
-static void
+void
fbclock_getbinuptime(struct bintime *bt)
{
struct timehands *th;
@@ -249,7 +249,7 @@ fbclock_getbinuptime(struct bintime *bt)
} while (gen == 0 || gen != th->th_generation);
}
-static void
+void
fbclock_getnanouptime(struct timespec *tsp)
{
struct timehands *th;
@@ -262,7 +262,7 @@ fbclock_getnanouptime(struct timespec *tsp)
} while (gen == 0 || gen != th->th_generation);
}
-static void
+void
fbclock_getmicrouptime(struct timeval *tvp)
{
struct timehands *th;
@@ -275,7 +275,7 @@ fbclock_getmicrouptime(struct timeval *tvp)
} while (gen == 0 || gen != th->th_generation);
}
-static void
+void
fbclock_getbintime(struct bintime *bt)
{
struct timehands *th;
@@ -289,7 +289,7 @@ fbclock_getbintime(struct bintime *bt)
bintime_add(bt, &boottimebin);
}
-static void
+void
fbclock_getnanotime(struct timespec *tsp)
{
struct timehands *th;
@@ -302,7 +302,7 @@ fbclock_getnanotime(struct timespec *tsp)
} while (gen == 0 || gen != th->th_generation);
}
-static void
+void
fbclock_getmicrotime(struct timeval *tvp)
{
struct timehands *th;
OpenPOWER on IntegriCloud