Lines Matching refs:thread
35 struct task_struct *thread; member
585 struct task_struct *thread; in sugov_kthread_create() local
610 thread = kthread_create(kthread_worker_fn, &sg_policy->worker, in sugov_kthread_create()
613 if (IS_ERR(thread)) { in sugov_kthread_create()
614 pr_err("failed to create sugov thread: %ld\n", PTR_ERR(thread)); in sugov_kthread_create()
615 return PTR_ERR(thread); in sugov_kthread_create()
618 ret = sched_setattr_nocheck(thread, &attr); in sugov_kthread_create()
620 kthread_stop(thread); in sugov_kthread_create()
625 sg_policy->thread = thread; in sugov_kthread_create()
626 kthread_bind_mask(thread, policy->related_cpus); in sugov_kthread_create()
630 wake_up_process(thread); in sugov_kthread_create()
642 kthread_stop(sg_policy->thread); in sugov_kthread_stop()