From: Subrata <sub...@us...> - 2008-10-05 14:30:42
|
Update of /cvsroot/ltp/ltp/testcases/realtime/func/gtod_latency In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24394/ltp/testcases/realtime/func/gtod_latency Modified Files: gtod_infinite.c Log Message: The clock source used in the gtod_infinite test should be CLOCK_MONOTONIC instead of CLOCK_REALTIME. This is to avoid plausible inconsistencies caused by NTP time adjustments. Tested: running gtod_infinite and then killing it. Signed-Off-By: Chirag <ch...@li...>, Acked-by: Darren Hart <dv...@us...>. Index: gtod_infinite.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/func/gtod_latency/gtod_infinite.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** gtod_infinite.c 19 Aug 2008 06:17:37 -0000 1.6 --- gtod_infinite.c 5 Oct 2008 14:29:40 -0000 1.7 *************** *** 56,61 **** #include <sys/mman.h> ! /* #define CLOCK_TO_USE CLOCK_MONOTONIC */ ! #define CLOCK_TO_USE CLOCK_REALTIME #define START_MAX 3000 --- 56,60 ---- #include <sys/mman.h> ! #define CLOCK_TO_USE CLOCK_MONOTONIC #define START_MAX 3000 |