Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144612325
D35935.1775777467.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
506 B
Referenced Files
None
Subscribers
None
D35935.1775777467.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
Thu, Apr 9, 11:31 PM (3 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28310348
Default Alt Text
D35935.1775777467.diff (506 B)
Attached To
Mode
D35935: pps: Round to closest integer in pps_event()
Attached
Detach File
Event Timeline
Log In to Comment