Lines Matching refs:tsk

30 	struct task_struct *tsk = per_cpu(idle_threads, cpu);  in idle_thread_get()  local
32 if (!tsk) in idle_thread_get()
34 init_idle(tsk, cpu); in idle_thread_get()
35 return tsk; in idle_thread_get()
51 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() local
53 if (!tsk) { in idle_init()
54 tsk = fork_idle(cpu); in idle_init()
55 if (IS_ERR(tsk)) in idle_init()
58 per_cpu(idle_threads, cpu) = tsk; in idle_init()
171 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local
174 if (tsk) in __smpboot_create_thread()
183 tsk = kthread_create_on_cpu(smpboot_thread_fn, td, cpu, in __smpboot_create_thread()
185 if (IS_ERR(tsk)) { in __smpboot_create_thread()
187 return PTR_ERR(tsk); in __smpboot_create_thread()
189 get_task_struct(tsk); in __smpboot_create_thread()
190 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
198 if (!wait_task_inactive(tsk, TASK_PARKED)) in __smpboot_create_thread()
223 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread() local
226 kthread_unpark(tsk); in smpboot_unpark_thread()
242 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread() local
244 if (tsk && !ht->selfparking) in smpboot_park_thread()
245 kthread_park(tsk); in smpboot_park_thread()
264 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads() local
266 if (tsk) { in smpboot_destroy_threads()
267 kthread_stop(tsk); in smpboot_destroy_threads()
268 put_task_struct(tsk); in smpboot_destroy_threads()