cpu clock: add independent test for monotonic/sane TSC
authorJens Axboe <axboe@kernel.dk>
Mon, 17 Dec 2012 11:03:29 +0000 (12:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Dec 2012 11:03:29 +0000 (12:03 +0100)
commit7d11f87148b8ec0f5627c701c934c752bf774029
treeaf43dcf3ed2778868bd7b50abc25dc6ae740e4fa
parent01423eae85a071ff6acee870edd696c7929723ba
cpu clock: add independent test for monotonic/sane TSC

Fire up all threads on the system, checking the clock 100,000
times on each. Then collect and compare results, to ensure we
never have a clock that goes backwards.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
gettime.c
gettime.h
init.c