selftests/timers: Add nsleep-lat test from timetest suite
authorJohn Stultz <john.stultz@linaro.org>
Thu, 12 Mar 2015 00:40:01 +0000 (17:40 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 12 Mar 2015 19:22:13 +0000 (13:22 -0600)
commitc5fffcb2bd4e2fdc37875fc4368db49ac927d6df
treecc4098d78a0c9b76bde153cc8de231d36b4c58c7
parented3fe34a2a4e0c9f184a178c48acf20c7acf244e
selftests/timers: Add nsleep-lat test from timetest suite

Adds my nanosleep latency test from the timetest suite.
This checks to make sure we don't see "unreasonable"
latencies (> 40ms) when calling nanosleep.

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Tested-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/timers/Makefile
tools/testing/selftests/timers/nsleep-lat.c [new file with mode: 0644]