From db225aa38dae079c8fb5a95e9fd6ddc5975be466 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 24 Jul 2013 17:04:35 +0200 Subject: [PATCH] tests/gem_flink_race: correct thread count They all race against each another, no worker-slave relationship like in the other subtest. Signed-off-by: Daniel Vetter --- tests/gem_flink_race.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/gem_flink_race.c b/tests/gem_flink_race.c index adb425d..97c6e67 100644 --- a/tests/gem_flink_race.c +++ b/tests/gem_flink_race.c @@ -164,9 +164,7 @@ static void test_flink_close(void) int obj_count = get_object_count(); void *status; - num_threads = sysconf(_SC_NPROCESSORS_ONLN) - 1; - if (!num_threads) - num_threads = 1; + num_threads = sysconf(_SC_NPROCESSORS_ONLN); threads = calloc(num_threads, sizeof(pthread_t)); -- 2.7.4