Lines Matching defs:kthread
40 #include <linux/kthread.h>
72 /* runtime kthread data */
74 struct task_struct *kthread;
165 if (!kdata->kthread)
385 * stop_stop_kthread - Inform the hardware latency sampling/detector kthread to stop
393 struct task_struct *kthread;
396 kthread = kdata->kthread;
398 if (!kthread)
401 kthread_stop(kthread);
402 kdata->kthread = NULL;
410 * start_single_kthread - Kick off the hardware latency sampling/detector kthread
419 struct task_struct *kthread;
423 if (kdata->kthread)
426 kthread = kthread_create(kthread_fn, NULL, "hwlatd");
427 if (IS_ERR(kthread)) {
443 set_cpus_allowed_ptr(kthread, current_mask);
445 kdata->kthread = kthread;
446 wake_up_process(kthread);
454 * stop_cpu_kthread - Stop a hwlat cpu kthread
458 struct task_struct *kthread;
460 kthread = per_cpu(hwlat_per_cpu_data, cpu).kthread;
461 if (kthread)
462 kthread_stop(kthread);
463 per_cpu(hwlat_per_cpu_data, cpu).kthread = NULL;
467 * stop_per_cpu_kthreads - Inform the hardware latency sampling/detector kthread to stop
483 * start_cpu_kthread - Start a hwlat cpu kthread
487 struct task_struct *kthread;
490 if (per_cpu(hwlat_per_cpu_data, cpu).kthread)
493 kthread = kthread_run_on_cpu(kthread_fn, NULL, cpu, "hwlatd/%u");
494 if (IS_ERR(kthread)) {
499 per_cpu(hwlat_per_cpu_data, cpu).kthread = kthread;
815 pr_err(BANNER "Cannot start hwlat kthread\n");