aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/timers/set-timer-lat.c
diff options
context:
space:
mode:
authorGravatar John Stultz <john.stultz@linaro.org> 2015-03-25 16:44:33 -0700
committerGravatar Shuah Khan <shuahkh@osg.samsung.com> 2015-03-31 13:44:32 -0600
commite48f284d63ece564f8aa19fbf5434b3458af8d3f (patch)
treef4dd8076701429aaa69b637c5dc325383ebe8787 /tools/testing/selftests/timers/set-timer-lat.c
parentftracetest: Convert exit -1 to exit $FAIL (diff)
downloadlinux-e48f284d63ece564f8aa19fbf5434b3458af8d3f.tar.gz
linux-e48f284d63ece564f8aa19fbf5434b3458af8d3f.tar.bz2
linux-e48f284d63ece564f8aa19fbf5434b3458af8d3f.zip
kselftests: timers: Reduce default runtime on inconsistency-check and set-timer-lat
For the default run_timers target, the timers tests takes the majority of kselftests runtime. So this patch reduces the default runtime for inconsistentcy-check and set-timer-lat, which reduced the runtime almost in half. Before: 11m48.629s After: 6m47.723s 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> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/timers/set-timer-lat.c')
-rw-r--r--tools/testing/selftests/timers/set-timer-lat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/set-timer-lat.c b/tools/testing/selftests/timers/set-timer-lat.c
index 3ea2effbcc22..2ed326750ffe 100644
--- a/tools/testing/selftests/timers/set-timer-lat.c
+++ b/tools/testing/selftests/timers/set-timer-lat.c
@@ -58,7 +58,7 @@ static inline int ksft_exit_fail(void)
#define NSEC_PER_SEC 1000000000ULL
#define UNRESONABLE_LATENCY 40000000 /* 40ms in nanosecs */
-#define TIMER_SECS 3
+#define TIMER_SECS 1
int alarmcount;
int clock_id;
struct timespec start_time;