aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_ntptime.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-04-26 21:31:44 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-04-26 21:31:44 +0000
commitb4a1d0deb105df01f80dac1be7e282928a3963ea (patch)
tree2d6cf3e9c14f0c8a30d152f6f10c4cc46d797f25 /sys/kern/kern_ntptime.c
parent14021ab570142b42943397c90fe0a3f3759a0eeb (diff)
downloadsrc-b4a1d0deb105df01f80dac1be7e282928a3963ea.tar.gz
src-b4a1d0deb105df01f80dac1be7e282928a3963ea.zip
Hide the private parts of timecounter from a couple of places that don't
really need to know the gory details.
Notes
Notes: svn path=/head/; revision=95529
Diffstat (limited to 'sys/kern/kern_ntptime.c')
-rw-r--r--sys/kern/kern_ntptime.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
index 34771c20118b..cd2db730342c 100644
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -436,13 +436,11 @@ done2:
* simulation.
*/
void
-ntp_update_second(struct timecounter *tcp)
+ntp_update_second(int64_t *adjustment, time_t *newsec)
{
- u_int32_t *newsec;
int tickrate;
l_fp ftemp; /* 32/64-bit temporary */
- newsec = &tcp->tc_offset.sec;
/*
* On rollover of the second both the nanosecond and microsecond
* clocks are updated and the state machine cranked as
@@ -558,7 +556,7 @@ ntp_update_second(struct timecounter *tcp)
L_LINT(ftemp, tickrate * 1000);
L_ADD(time_adj, ftemp);
}
- tcp->tc_adjustment = time_adj;
+ *adjustment = time_adj;
#ifdef PPS_SYNC
if (pps_valid > 0)