Lines Matching refs:tsk
31 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get() local
33 if (!tsk) in idle_thread_get()
35 init_idle(tsk, cpu); in idle_thread_get()
36 return tsk; in idle_thread_get()
52 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() local
54 if (!tsk) { in idle_init()
55 tsk = fork_idle(cpu); in idle_init()
56 if (IS_ERR(tsk)) in idle_init()
59 per_cpu(idle_threads, cpu) = tsk; in idle_init()
172 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local
175 if (tsk) in __smpboot_create_thread()
184 tsk = kthread_create_on_cpu(smpboot_thread_fn, td, cpu, in __smpboot_create_thread()
186 if (IS_ERR(tsk)) { in __smpboot_create_thread()
188 return PTR_ERR(tsk); in __smpboot_create_thread()
194 kthread_park(tsk); in __smpboot_create_thread()
195 get_task_struct(tsk); in __smpboot_create_thread()
196 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
204 if (!wait_task_inactive(tsk, TASK_PARKED)) in __smpboot_create_thread()
229 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread() local
232 kthread_unpark(tsk); in smpboot_unpark_thread()
248 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread() local
250 if (tsk && !ht->selfparking) in smpboot_park_thread()
251 kthread_park(tsk); in smpboot_park_thread()
271 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads() local
273 if (tsk) { in smpboot_destroy_threads()
274 kthread_stop(tsk); in smpboot_destroy_threads()
275 put_task_struct(tsk); in smpboot_destroy_threads()