Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157904315
D35935.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
506 B
Referenced Files
None
Subscribers
None
D35935.diff
View Options
Index: sys/kern/kern_tc.c
===================================================================
--- sys/kern/kern_tc.c
+++ sys/kern/kern_tc.c
@@ -1882,6 +1882,7 @@
#ifdef PPS_SYNC
if (fhard) {
uint64_t nsec;
+ uint64_t freq;
/*
* Feed the NTP PLL/FLL.
@@ -1893,7 +1894,8 @@
tcount &= captc->tc_counter_mask;
nsec = 1000000000;
nsec *= tcount;
- nsec /= captc->tc_frequency;
+ freq = captc->tc_frequency;
+ nsec = (nsec + freq / 2) / freq;
hardpps(tsp, (long)nsec);
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 27, 8:35 AM (12 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33551554
Default Alt Text
D35935.diff (506 B)
Attached To
Mode
D35935: pps: Round to closest integer in pps_event()
Attached
Detach File
Event Timeline
Log In to Comment