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 return tsk; in idle_thread_get()
50 struct task_struct *tsk = per_cpu(idle_threads, cpu); in idle_init() local
52 if (!tsk) { in idle_init()
53 tsk = fork_idle(cpu); in idle_init()
54 if (IS_ERR(tsk)) in idle_init()
57 per_cpu(idle_threads, cpu) = tsk; in idle_init()
168 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local
171 if (tsk) in __smpboot_create_thread()
180 tsk = kthread_create_on_cpu(smpboot_thread_fn, td, cpu, in __smpboot_create_thread()
182 if (IS_ERR(tsk)) { in __smpboot_create_thread()
184 return PTR_ERR(tsk); in __smpboot_create_thread()
186 kthread_set_per_cpu(tsk, cpu); in __smpboot_create_thread()
191 kthread_park(tsk); in __smpboot_create_thread()
192 get_task_struct(tsk); in __smpboot_create_thread()
193 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
201 if (!wait_task_inactive(tsk, TASK_PARKED)) in __smpboot_create_thread()
226 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread() local
229 kthread_unpark(tsk); in smpboot_unpark_thread()
245 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread() local
247 if (tsk && !ht->selfparking) in smpboot_park_thread()
248 kthread_park(tsk); in smpboot_park_thread()
268 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads() local
270 if (tsk) { in smpboot_destroy_threads()
271 kthread_stop_put(tsk); in smpboot_destroy_threads()