Re: LinuxPPS low-level IRQs timestamps & ldisc

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rodolfo Giometti
Date: Monday, June 2, 2008 - 7:56 am

On Mon, Jun 02, 2008 at 03:02:57PM +0100, Alan Cox wrote:

I prefere avoid the if clause for getnstimeofday() since each
instruction delay may decrease time precision, so:

{
      struct timespec ts;
      getnstimeofday(&ts);
      existing tty stuff
      if (ld->dcd_change)
              ld->dcd_change(tty, status, &ts);
}

In the wrost case the timestamp is not used.


Ok.


Great!

Thanks,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti@enneenne.com
Linux Device Driver                             giometti@linux.it
Embedded Systems                     phone:	+39 349 2432127
UNIX programming                     skype:     rodolfo.giometti
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
LinuxPPS low-level IRQs timestamps & ldisc, Rodolfo Giometti, (Sun Jun 1, 9:15 am)
Re: LinuxPPS low-level IRQs timestamps & ldisc, Lennart Sorensen, (Sun Jun 1, 12:26 pm)
Re: LinuxPPS low-level IRQs timestamps & ldisc, Rodolfo Giometti, (Mon Jun 2, 2:25 am)
Re: LinuxPPS low-level IRQs timestamps & ldisc, Rodolfo Giometti, (Mon Jun 2, 7:56 am)
Re: LinuxPPS low-level IRQs timestamps & ldisc, Lennart Sorensen, (Mon Jun 2, 10:09 am)
Re: LinuxPPS low-level IRQs timestamps & ldisc, Rodolfo Giometti, (Mon Jun 2, 10:22 am)
Re: LinuxPPS low-level IRQs timestamps & ldisc, Matti Aarnio, (Mon Jun 2, 1:21 pm)