Lines Matching refs:thread
511 struct task_struct *thread; in start_power_clamp() local
536 thread = kthread_create_on_node(clamp_thread, in start_power_clamp()
541 if (likely(!IS_ERR(thread))) { in start_power_clamp()
542 kthread_bind(thread, cpu); in start_power_clamp()
543 wake_up_process(thread); in start_power_clamp()
544 *p = thread; in start_power_clamp()
556 struct task_struct *thread; in end_power_clamp() local
568 thread = *per_cpu_ptr(powerclamp_thread, i); in end_power_clamp()
569 kthread_stop(thread); in end_power_clamp()
578 struct task_struct *thread; in powerclamp_cpu_callback() local
587 thread = kthread_create_on_node(clamp_thread, in powerclamp_cpu_callback()
591 if (likely(!IS_ERR(thread))) { in powerclamp_cpu_callback()
592 kthread_bind(thread, cpu); in powerclamp_cpu_callback()
593 wake_up_process(thread); in powerclamp_cpu_callback()
594 *percpu_thread = thread; in powerclamp_cpu_callback()