Re: Issue (NOT RELATED TO RT-PATCH) with clock_gettime / clock_nanosleep APIs with high resolution timer on panda board

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

 



Mike,

On Thu, 1 Sep 2011, Michael Mueller wrote:
> On Thu, Sep 1, 2011 at 3:33 PM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> 
> >
> > That looks like a problem in the clocksource. i.e. time is going
> > backward or having weird momentary jumps. You could verify that by
> > running one ore more tight loops which do
> >
> >        clock_gettime(CLOCK_MONOTONIC, &prev);
> >        while (1) {
> >              clock_gettime(CLOCK_MONOTONIC, &curr);
> >              if (curr < prev) /* Use a proper compare function for
> > timespec! */
> >                       printf(.....);
> >              prev = curr;
> >        }
> >
> > If that triggers on RT or on a vanilla kernel, then the problem is
> > definitely somewhere in the timekeeping/clocksource area.
> 
> 
> have seen this problem in vanilla kernels; developed a work-around that
> calls
> clock_gettime(CLOCK_MONOTONIC, &curr); until curr>prev
> a couple of times, and if that doesn't work, then it gets a new prev value
> and a new curr value; rinse and repeat until curr<prev; not sure what
> precipitates the problem; will post workaround code if wanted

Is that on a Panda board as well?

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux