|
@@ -487,7 +487,11 @@ static int sugov_kthread_create(struct sugov_policy *sg_policy)
|
|
|
}
|
|
|
|
|
|
sg_policy->thread = thread;
|
|
|
- kthread_bind_mask(thread, policy->related_cpus);
|
|
|
+
|
|
|
+ /* Kthread is bound to all CPUs by default */
|
|
|
+ if (!policy->dvfs_possible_from_any_cpu)
|
|
|
+ kthread_bind_mask(thread, policy->related_cpus);
|
|
|
+
|
|
|
init_irq_work(&sg_policy->irq_work, sugov_irq_work);
|
|
|
mutex_init(&sg_policy->work_lock);
|
|
|
|