Re: gettimeofday() resolution in Linux?

From: Bart Van Assche
Date: Thu Apr 10 2008 - 14:03:17 EST


On Thu, Apr 10, 2008 at 7:57 PM, Jack Harvard
<jack.harvard@xxxxxxxxxxxxxx> wrote:
> On Thu, Apr 10, 2008 at 6:41 PM, Bart Van Assche
> <bart.vanassche@xxxxxxxxx> wrote:
> > On Thu, Apr 10, 2008 at 5:59 PM, Jack Harvard
> > <jack.harvard@xxxxxxxxxxxxxx> wrote:
> >
> > > Here is an example of gettimeofday results, the time rolls back sometimes.
> >
> > If the result of gettimeofday() rolls back, and there is no process on
> > your system that sets the time (like ntpd or hwclock --hctosys) then
> > this is a kernel bug. Which kernel version are you using, and which
> > kernel patches have been applied to that kernel ?
>
> It's an embedded system with an ARM processor, uname -a give the following info:
> Linux (none) 2.6.21-arm1-t2_1 #20 Thu Apr 10 15:20:46 BST 2008 armv6l unknown

Where did the kernel sources come from -- from kernel.org or from an
company that modified the kernel ? Most companies that offer support
for Linux on embedded devices modify the kernel with e.g. hard
real-time support and high resolution timers. It is easy to introduce
bugs by doing so.

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/