[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some thing wrong in gettimeofday() ?



> Thank you Johan,
> 
> Stupid me on last email :). I sent double information on gcc-cris version
> instead of gcc-cris version and kernel version.
> My kernel version is:
> [root@Axis2 /var/tmp]52# cat /proc/version
> Linux version 2.4.5 (thai@xxxxxxx.96 20000427 (experimental))
> #68 Mon Dec 10 20:09:05 CET 2001
> 
> So does the newest kernel version fix this bug?

Yes, it should.
Devboard LX 2.1.0 uses Linux 2.4.14 and it should contain the fix.
You find it at http://developer.axis.com/download/

/Johan


 
> Best regards
> 
> Nguyen Thai
> 
> > -----Original Message-----
> > From: Johan Adolfsson [mailto:johan.adolfsson@xxxxxxx.com]
> > Sent: den 8 januari 2002 16:14
> > To: Nguyen Thai; Jonas Holmberg; DEVB
> > Subject: Re: Some thing wrong in gettimeofday() ?
> >
> >
> > Hi,
> >
> > There is (was) a bug in the gettimeofday() implementation
> > where it didn't detect underflow of the timer correctly
> > causing the time to go backwords etc.
> > This is fixed in our CVS some time ago, but I'm not sure
> > if it's in the version on the developer web yet.
> >
> > What version of the kernel did you use?
> > (cat /proc/version )
> >
> > BTW: I have also improved the timing resolution
> > so you can get 67 ns resolution within a "jiffie"
> > and thus get 1us resolution (instead of 52 us)
> > in the gettimeofday() call.
> > The smallest time between gettimeofday() calls
> > I have seen with my solution is 4 us.
> > Not checked in yet though...
> >
> > /Johan
> >
>