提交 e48f284d 编写于 作者: J John Stultz 提交者: Shuah Khan

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: NJohn Stultz <john.stultz@linaro.org>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 44164c4b
...@@ -166,7 +166,7 @@ int main(int argc, char *argv[]) ...@@ -166,7 +166,7 @@ int main(int argc, char *argv[])
int clockid, opt; int clockid, opt;
int userclock = CLOCK_REALTIME; int userclock = CLOCK_REALTIME;
int maxclocks = NR_CLOCKIDS; int maxclocks = NR_CLOCKIDS;
int runtime = 30; int runtime = 10;
struct timespec ts; struct timespec ts;
/* Process arguments */ /* Process arguments */
......
...@@ -58,7 +58,7 @@ static inline int ksft_exit_fail(void) ...@@ -58,7 +58,7 @@ static inline int ksft_exit_fail(void)
#define NSEC_PER_SEC 1000000000ULL #define NSEC_PER_SEC 1000000000ULL
#define UNRESONABLE_LATENCY 40000000 /* 40ms in nanosecs */ #define UNRESONABLE_LATENCY 40000000 /* 40ms in nanosecs */
#define TIMER_SECS 3 #define TIMER_SECS 1
int alarmcount; int alarmcount;
int clock_id; int clock_id;
struct timespec start_time; struct timespec start_time;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册