Lines Matching refs:tasks
140 struct task_struct **tasks;
156 tasks = kzalloc_objs(*tasks, n_threads);
157 if (!tasks) {
165 kfree(tasks);
177 kfree(tasks);
197 tasks[i] = kthread_create(bench_kthread_fn, &ctxs[i],
199 if (IS_ERR(tasks[i])) {
200 ret = PTR_ERR(tasks[i]);
206 kthread_stop(tasks[i]);
210 kthread_bind(tasks[i], cpu);
211 wake_up_process(tasks[i]);
227 kthread_stop(tasks[i]);
254 kfree(tasks);