Commit db225aa3 authored by Daniel Vetter's avatar Daniel Vetter

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's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent bc62a64b
...@@ -164,9 +164,7 @@ static void test_flink_close(void) ...@@ -164,9 +164,7 @@ static void test_flink_close(void)
int obj_count = get_object_count(); int obj_count = get_object_count();
void *status; void *status;
num_threads = sysconf(_SC_NPROCESSORS_ONLN) - 1; num_threads = sysconf(_SC_NPROCESSORS_ONLN);
if (!num_threads)
num_threads = 1;
threads = calloc(num_threads, sizeof(pthread_t)); threads = calloc(num_threads, sizeof(pthread_t));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment