Lines Matching defs:threads
434 struct task_struct **threads;
440 * threads. A very simple test to only catch the most egregious of bugs.
444 threads = kcalloc(ncpus, sizeof(*threads), GFP_KERNEL);
445 if (!threads)
463 threads[n] = kthread_run(__igt_breadcrumbs_smoketest,
465 if (IS_ERR(threads[n])) {
466 ret = PTR_ERR(threads[n]);
471 get_task_struct(threads[n]);
474 yield(); /* start all threads before we begin */
480 err = kthread_stop(threads[n]);
484 put_task_struct(threads[n]);
499 kfree(threads);
1260 yield(); /* start all threads before we kthread_stop() */
1328 struct task_struct **threads;
1338 * threads. A very simple test to only catch the most egregious of bugs.
1358 threads = kcalloc(ncpus * nengines, sizeof(*threads), GFP_KERNEL);
1359 if (!threads) {
1412 threads[idx * ncpus + n] = tsk;
1418 yield(); /* start all threads before we begin */
1427 struct task_struct *tsk = threads[idx * ncpus + n];
1451 kfree(threads);