Re: [chrony-dev] [PATCH 2/2] refclock: Fix poll counting for refclocks that do polling and event driven timekeeping

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Wed, Jun 30, 2021 at 04:47:22PM +0200, Uwe Kleine-König wrote:
> I'm a bit unsure about this change. I wonder what driver_polled actually
> should count. If it counts the number off poll calls the logic in
> RCL_AddCookedPulse and RCL_AddSample are unreliable as they only count
> the events that actually yielded a timestamp?!

With drivers that have poll() it counts the number of its calls to
know when the source poll should be made. In drivers that don't have
poll() it's the number of samples for logging purposes.

This would be the first driver that supports both, so some extension
of the driver API might be needed, e.g. to avoid unneccessary polling,
but I'm not sure how much sense it makes to support irqless RTCs.
chronyd will have a difficult time to synchronize to such a poor
refclock.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/