mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Don't forget to factor in the boottime when we calculate PPS timestamps.
Submitted by: Akira Watanabe <akira@myaw.ei.meisei-u.ac.jp>
This commit is contained in:
parent
b5544fefe9
commit
fe71224650
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97573
@ -596,6 +596,7 @@ pps_event(struct pps_state *pps, int event)
|
||||
tcount &= pps->capth->th_counter->tc_counter_mask;
|
||||
bt = pps->capth->th_offset;
|
||||
bintime_addx(&bt, pps->capth->th_scale * tcount);
|
||||
bintime_add(&bt, boottimebin);
|
||||
bintime2timespec(&bt, &ts);
|
||||
|
||||
/* If the timecounter was wound up underneath us, bail out. */
|
||||
|
Loading…
Reference in New Issue
Block a user