Lines Matching refs:tsk
101 struct task_struct **tsk; in do_map_benchmark() local
109 tsk = kmalloc_array(threads, sizeof(*tsk), GFP_KERNEL); in do_map_benchmark()
110 if (!tsk) in do_map_benchmark()
116 tsk[i] = kthread_create_on_node(map_benchmark_thread, map, in do_map_benchmark()
118 if (IS_ERR(tsk[i])) { in do_map_benchmark()
120 ret = PTR_ERR(tsk[i]); in do_map_benchmark()
125 kthread_bind_mask(tsk[i], cpu_mask); in do_map_benchmark()
136 get_task_struct(tsk[i]); in do_map_benchmark()
137 wake_up_process(tsk[i]); in do_map_benchmark()
144 ret = kthread_stop(tsk[i]); in do_map_benchmark()
174 put_task_struct(tsk[i]); in do_map_benchmark()
176 kfree(tsk); in do_map_benchmark()