diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-30 10:34:01 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-05-30 10:34:01 +0000 |
commit | fe71224650bbe996cb28a62737c7b1dd23f95ea9 (patch) | |
tree | b9a0175ad273edc45e3815cdc5d6fb58a6fda089 /sys | |
parent | b5544fefe9f1ed936ea9d5aec2ac3316d5ed27b8 (diff) | |
download | src-fe71224650bbe996cb28a62737c7b1dd23f95ea9.tar.gz src-fe71224650bbe996cb28a62737c7b1dd23f95ea9.zip |
Don't forget to factor in the boottime when we calculate PPS timestamps.
Submitted by: Akira Watanabe <akira@myaw.ei.meisei-u.ac.jp>
Notes
Notes:
svn path=/head/; revision=97573
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_tc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 2f752a642d43..11100a09f227 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -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. */ |