Loading kernel/sched/core.c +7 −2 Original line number Diff line number Diff line Loading @@ -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))) Loading Loading
kernel/sched/core.c +7 −2 Original line number Diff line number Diff line Loading @@ -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))) Loading