Lines Matching refs:kthread

208 	struct task_struct	*kthread;  member
241 struct task_struct *kthread; member
276 if (tlat_var->kthread) in tlat_var_reset()
1684 this_cpu_osn_var()->kthread = NULL; in osnoise_migration_pending()
1821 wake_up_process(tlat->kthread); in timerlat_irq()
1827 wake_up_process(tlat->kthread); in timerlat_irq()
1901 tlat->kthread = current; in timerlat_main()
1954 struct task_struct *kthread; in stop_kthread() local
1956 kthread = xchg_relaxed(&(per_cpu(per_cpu_osnoise_var, cpu).kthread), NULL); in stop_kthread()
1957 if (kthread) { in stop_kthread()
1960 kthread_stop(kthread); in stop_kthread()
1967 kill_pid(kthread->thread_pid, SIGKILL, 1); in stop_kthread()
1968 put_task_struct(kthread); in stop_kthread()
2005 struct task_struct *kthread; in start_kthread() local
2010 if (per_cpu(per_cpu_osnoise_var, cpu).kthread) in start_kthread()
2026 kthread = kthread_run_on_cpu(main, NULL, cpu, comm); in start_kthread()
2028 if (IS_ERR(kthread)) { in start_kthread()
2034 per_cpu(per_cpu_osnoise_var, cpu).kthread = kthread; in start_kthread()
2065 struct task_struct *kthread; in start_per_cpu_kthreads() local
2067 kthread = xchg_relaxed(&(per_cpu(per_cpu_osnoise_var, cpu).kthread), NULL); in start_per_cpu_kthreads()
2068 if (!WARN_ON(!kthread)) in start_per_cpu_kthreads()
2069 kthread_stop(kthread); in start_per_cpu_kthreads()
2457 osn_var->kthread = current; in timerlat_fd_open()
2551 tlat->kthread = current; in timerlat_fd_read()
2603 if (tlat_var->kthread) in timerlat_fd_release()
2613 if (osn_var->kthread) { in timerlat_fd_release()
2614 put_task_struct(osn_var->kthread); in timerlat_fd_release()
2615 osn_var->kthread = NULL; in timerlat_fd_release()