tests/gem_flink_race: correct thread count
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 15:04:35 +0000 (17:04 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 15:04:35 +0000 (17:04 +0200)
They all race against each another, no worker-slave relationship
like in the other subtest.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/gem_flink_race.c

index adb425d..97c6e67 100644 (file)
@@ -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));