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()
170 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in __smpboot_create_thread() local
173 if (tsk) in __smpboot_create_thread()
182 tsk = kthread_create_on_cpu(smpboot_thread_fn, td, cpu, in __smpboot_create_thread()
184 if (IS_ERR(tsk)) { in __smpboot_create_thread()
186 return PTR_ERR(tsk); in __smpboot_create_thread()
188 get_task_struct(tsk); in __smpboot_create_thread()
189 *per_cpu_ptr(ht->store, cpu) = tsk; in __smpboot_create_thread()
197 if (!wait_task_inactive(tsk, TASK_PARKED)) in __smpboot_create_thread()
222 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_unpark_thread() local
226 kthread_unpark(tsk); in smpboot_unpark_thread()
241 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_park_thread() local
243 if (tsk && !ht->selfparking) in smpboot_park_thread()
244 kthread_park(tsk); in smpboot_park_thread()
263 struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu); in smpboot_destroy_threads() local
265 if (tsk) { in smpboot_destroy_threads()
266 kthread_stop(tsk); in smpboot_destroy_threads()
267 put_task_struct(tsk); in smpboot_destroy_threads()