Lines Matching refs:kthread
74 struct task_struct *kthread; member
167 if (!kdata->kthread) in trace_hwlat_callback()
399 struct task_struct *kthread; in stop_single_kthread() local
402 kthread = kdata->kthread; in stop_single_kthread()
404 if (!kthread) in stop_single_kthread()
407 kthread_stop(kthread); in stop_single_kthread()
408 kdata->kthread = NULL; in stop_single_kthread()
425 struct task_struct *kthread; in start_single_kthread() local
429 if (kdata->kthread) in start_single_kthread()
432 kthread = kthread_create(kthread_fn, NULL, "hwlatd"); in start_single_kthread()
433 if (IS_ERR(kthread)) { in start_single_kthread()
449 set_cpus_allowed_ptr(kthread, current_mask); in start_single_kthread()
451 kdata->kthread = kthread; in start_single_kthread()
452 wake_up_process(kthread); in start_single_kthread()
464 struct task_struct *kthread; in stop_cpu_kthread() local
466 kthread = per_cpu(hwlat_per_cpu_data, cpu).kthread; in stop_cpu_kthread()
467 if (kthread) in stop_cpu_kthread()
468 kthread_stop(kthread); in stop_cpu_kthread()
469 per_cpu(hwlat_per_cpu_data, cpu).kthread = NULL; in stop_cpu_kthread()
493 struct task_struct *kthread; in start_cpu_kthread() local
496 if (per_cpu(hwlat_per_cpu_data, cpu).kthread) in start_cpu_kthread()
499 kthread = kthread_run_on_cpu(kthread_fn, NULL, cpu, "hwlatd/%u"); in start_cpu_kthread()
500 if (IS_ERR(kthread)) { in start_cpu_kthread()
505 per_cpu(hwlat_per_cpu_data, cpu).kthread = kthread; in start_cpu_kthread()