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
--