Lines Matching refs:kthread
29 #include <linux/kthread.h>
80 struct task_struct *kthread;
494 if (!pt1->kthread) {
495 pt1->kthread = kthread_run(pt1_thread, pt1, "earth-pt1");
496 if (IS_ERR(pt1->kthread)) {
497 ret = PTR_ERR(pt1->kthread);
498 pt1->kthread = NULL;
528 if (count == 0 && pt1->kthread) {
529 kthread_stop(pt1->kthread);
530 pt1->kthread = NULL;
1069 if (pt1->kthread)
1070 kthread_stop(pt1->kthread);