Lines Matching refs:tsk
32 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_thread_get() local
34 if (!tsk) 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()
190 kthread_set_per_cpu(tsk, cpu); in __smpboot_create_thread()
195 kthread_park(tsk); in __smpboot_create_thread()
196 get_task_struct(tsk); in __smpboot_create_thread()
197 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
205 if (!wait_task_inactive(tsk, TASK_PARKED)) in __smpboot_create_thread()
230 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread() local
233 kthread_unpark(tsk); in smpboot_unpark_thread()
249 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread() local
251 if (tsk && !ht->selfparking) in smpboot_park_thread()
252 kthread_park(tsk); in smpboot_park_thread()
272 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads() local
274 if (tsk) { in smpboot_destroy_threads()
275 kthread_stop(tsk); in smpboot_destroy_threads()
276 put_task_struct(tsk); in smpboot_destroy_threads()