Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 574e5296 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Allow migrating kthreads into online but inactive CPUs"

parents cc87643c 1ac6b307
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1051,8 +1051,13 @@ struct migration_arg {
 */
static struct rq *__migrate_task(struct rq *rq, struct task_struct *p, int dest_cpu)
{
	if (p->flags & PF_KTHREAD) {
		if (unlikely(!cpu_online(dest_cpu)))
			return rq;
	} else {
		if (unlikely(!cpu_active(dest_cpu)))
			return rq;
	}

	/* Affinity changed (again). */
	if (!cpumask_test_cpu(dest_cpu, tsk_cpus_allowed(p)))