From: Subrata M. <su...@li...> - 2008-07-25 00:21:57
|
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 <gil...@bu...> > > Acked-by: Darren Hart <dv...@us...> Committed. Regards-- Subrata > > > Cc: Tim Chavez <ti...@us...> > > > > --- > > 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; |