Now it's also in the interrupt routine (of the serial driver). I'm
afraid you are talking about new features I haven't heard about. Is
there an option to get the time-stamp of an interrupt? That would be
what I need, but currently the time-stamp is only taken if it's
definitely needed, and not for every serial interrupt.
No, I was talking about adding such an option. Yes, the disadvantage is
that you will be taking a time-stamp for every interrupt on that irq
(instead of just when the carrier detect line changes). But the place
where you are doing the time-stamp will be much cleaner, and result in
more accurate times for the PPS calculations.
I also got the suggestion to add a streams-like ioctl for
timestamping.
I have no idea what the person meant by that suggestion....
- Ted