> On 13 Sep 2016, at 20:07, Richard Cochran <richardcoch...@gmail.com> wrote: > > On Tue, Sep 13, 2016 at 10:25:47AM +0100, Kieran Tyrrell wrote: >> But maybe I have misunderstood your point… > > The existing code immediately re-configures TRGTTIML/H and re-enables > TSAUXC_EN_TT for periodic outputs. This is a time critical operation > that should not be delayed. > > The ptp_clock_event() method (or some new function) could return the > next deadline immediately, depending on the state of the timer queue. > > That is all I meant.
Ah ok, yes that makes sense. I have modified the code so that in the case of a PTP_CLOCK_ALARM event ptp_clock_event() will return the next fire time in the ptp_clock_event structure. That’s much more direct than how I had it before. Thanks, Kieran. ------------------------------------------------------------------------------ _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel