On Wed, 2008-07-23 at 09:37 -0700, Darren Hart wrote:
> On Wed, 2008-07-23 at 15:23 +0200, Gilles Carry wrote:
> > From: gilles.carry <gilles.carry>
> > 
> > In tsc_minus, changed test (tsc_begin < tsc_end) by
> > (tsc_begin <= tsc_end) since values can be equal as read
> > operations are sometimes very close.
> > 
> > Signed-off-by: Gilles Carry <[EMAIL PROTECTED]>
> 
> Acked-by: Darren Hart <[EMAIL PROTECTED]>

Committed.

Regards--
Subrata

> 
> > Cc: Tim Chavez <[EMAIL PROTECTED]>
> > 
> > ---
> >  testcases/realtime/lib/librttest.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/testcases/realtime/lib/librttest.c 
> > b/testcases/realtime/lib/librttest.c
> > index 2fc2513..ed1f097 100644
> > --- a/testcases/realtime/lib/librttest.c
> > +++ b/testcases/realtime/lib/librttest.c
> > @@ -402,7 +402,7 @@ void nsec_to_ts(nsec_t ns, struct timespec *ts)
> >  unsigned long long tsc_minus(unsigned long long tsc_start, unsigned long 
> > long tsc_end)
> >  {
> >     unsigned long long delta;
> > -   if (tsc_start < tsc_end)
> > +   if (tsc_start <= tsc_end)
> >             delta = tsc_end - tsc_start;
> >     else {
> >             delta = ULL_MAX - (tsc_end - tsc_start) + 1;


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to