1
0
Fork 0

kselftest/timers: Set default threadtest values to simplify execution scripts

In order to keep the kselftest Makefiles simpler, set the threadtest
default values to the ones used in standard run_tests

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>
hifive-unleashed-5.1
John Stultz 2015-03-18 08:51:53 -07:00 committed by Shuah Khan
parent 32dcfba6f8
commit 1c0a7498c7
1 changed files with 6 additions and 2 deletions

View File

@ -126,11 +126,13 @@ void *independent_thread(void *arg)
return NULL;
}
#define DEFAULT_THREAD_COUNT 8
#define DEFAULT_RUNTIME 30
int main(int argc, char **argv)
{
int thread_count = 1, i;
time_t start, now, runtime = 60;
int thread_count, i;
time_t start, now, runtime;
char buf[255];
pthread_t pth[MAX_THREADS];
int opt;
@ -138,6 +140,8 @@ int main(int argc, char **argv)
int ret = 0;
void *(*thread)(void *) = shared_thread;
thread_count = DEFAULT_THREAD_COUNT;
runtime = DEFAULT_RUNTIME;
/* Process arguments */
while ((opt = getopt(argc, argv, "t:n:i")) != -1) {