Re: LinuxPPS low-level IRQs timestamps & ldisc

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alan Cox <alan@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>
Date: Monday, June 2, 2008 - 10: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 &amp; ldisc, Rodolfo Giometti, (Sun Jun 1, 12:15 pm)
Re: LinuxPPS low-level IRQs timestamps &amp; ldisc, Rodolfo Giometti, (Mon Jun 2, 5:25 am)
Re: LinuxPPS low-level IRQs timestamps & ldisc, Rodolfo Giometti, (Mon Jun 2, 10:56 am)
Re: LinuxPPS low-level IRQs timestamps &amp; ldisc, Lennart Sorensen, (Mon Jun 2, 1:09 pm)
Re: LinuxPPS low-level IRQs timestamps &amp; ldisc, Rodolfo Giometti, (Mon Jun 2, 1:22 pm)
Re: LinuxPPS low-level IRQs timestamps &amp; ldisc, Matti Aarnio, (Mon Jun 2, 4:21 pm)
Re: LinuxPPS low-level IRQs timestamps &amp; ldisc, Lennart Sorensen, (Sun Jun 1, 3:26 pm)