[PATCH 17/34] cyclictest: tsnorm() after adjusting next

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

 



Only do the normalization right after adjusting next.

Signed-off-by: Tommi Rantala <tommi.t.rantala@xxxxxxxxx>
---
 src/cyclictest/cyclictest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index aae65ef..369ba04 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1232,6 +1232,7 @@ static void *timerthread(void *param)
 			}
 			next.tv_sec += overrun_count * interval.tv_sec;
 			next.tv_nsec += overrun_count * interval.tv_nsec;
+			tsnorm(&next);
 		} else {
 			while (tsgreater(&now, &next)) {
 				next.tv_sec += interval.tv_sec;
@@ -1239,7 +1240,6 @@ static void *timerthread(void *param)
 				tsnorm(&next);
 			}
 		}
-		tsnorm(&next);
 
 		if (par->max_cycles && par->max_cycles == stat->cycles)
 			break;
-- 
2.9.3

--
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