diff options
author | John Stultz <john.stultz@linaro.org> | 2015-03-25 19:44:33 -0400 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-03-31 15:44:32 -0400 |
commit | e48f284d63ece564f8aa19fbf5434b3458af8d3f (patch) | |
tree | f4dd8076701429aaa69b637c5dc325383ebe8787 /tools/testing | |
parent | 44164c4ba98c3dd3560d929ba66da51b5170ff1c (diff) |
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')
-rw-r--r-- | tools/testing/selftests/timers/inconsistency-check.c | 2 | ||||
-rw-r--r-- | tools/testing/selftests/timers/set-timer-lat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/timers/inconsistency-check.c b/tools/testing/selftests/timers/inconsistency-check.c index 578e423a8ad4..caf1bc9257c4 100644 --- a/tools/testing/selftests/timers/inconsistency-check.c +++ b/tools/testing/selftests/timers/inconsistency-check.c | |||
@@ -166,7 +166,7 @@ int main(int argc, char *argv[]) | |||
166 | int clockid, opt; | 166 | int clockid, opt; |
167 | int userclock = CLOCK_REALTIME; | 167 | int userclock = CLOCK_REALTIME; |
168 | int maxclocks = NR_CLOCKIDS; | 168 | int maxclocks = NR_CLOCKIDS; |
169 | int runtime = 30; | 169 | int runtime = 10; |
170 | struct timespec ts; | 170 | struct timespec ts; |
171 | 171 | ||
172 | /* Process arguments */ | 172 | /* Process arguments */ |
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) | |||
58 | #define NSEC_PER_SEC 1000000000ULL | 58 | #define NSEC_PER_SEC 1000000000ULL |
59 | #define UNRESONABLE_LATENCY 40000000 /* 40ms in nanosecs */ | 59 | #define UNRESONABLE_LATENCY 40000000 /* 40ms in nanosecs */ |
60 | 60 | ||
61 | #define TIMER_SECS 3 | 61 | #define TIMER_SECS 1 |
62 | int alarmcount; | 62 | int alarmcount; |
63 | int clock_id; | 63 | int clock_id; |
64 | struct timespec start_time; | 64 | struct timespec start_time; |