mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:55:07 -05:00
The Linux kernel (as of 6.2) has a shared queue of external timestamps for all descriptors of the same PHC. If multiple refclocks using the same PHC and the same or different channels were specified, some refclocks didn't receive any or most of their timestamps, depending on the rate and timing of the events (with the previous commit avoiding blocking reads). Track extpps-enabled refclocks in an array. Add PHC index to the PHC instance. When a timestamp is read from the descriptor, provide it to all refclocks that have the same PHC index and a channel matching the event. Make sure the timestamp is different from the previous one in case the kernel will be improved to duplicate the timestamps for different descriptors. Reported-by: Matt Corallo <ntp-lists@mattcorallo.com>
6.3 KiB
6.3 KiB