timestuff, was Re: performance, was Re: [LinuxPPS] patch report

Rodolfo Giometti giometti at linux.it
Wed Jul 19 09:27:26 CEST 2006


On Tue, Jul 18, 2006 at 02:23:54PM -0700, gnu not unix wrote:
> 
> I note that PPSkit hardpps() does 
> 
>   time_status |= STA_PPSSIGNAL;
> 
> Should we do something similar in linuxpps_event()? 

I don't know how to add/use this stuff... can you please provide a
patch?

> Also, the timestamp in linuxpps_event occurs *after*
> a couple of "if" tests. I'm a bit skeptical about that,
> and I'm thinking of moving the gettimeofday to before
> the two if tests. No harm in doing it there, after all.
> I do exactly that in the shm parallel port pps driver
> code, just grab a timestamp and ignore it if needs be.

It seems quite sane. :)

I'll update the code ASAP.

Thanks for your suggestions!

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list