On 17/02/21 14:50, Valentin Schneider wrote: > @@ -7539,6 +7539,9 @@ int can_migrate_task(struct task_struct *p, struct > lb_env *env) > if (throttled_lb_pair(task_group(p), env->src_cpu, env->dst_cpu)) > return 0; > > + if (kthread_is_per_cpu(p)) > + return 0; > +
That's missing a (p->flags & PF_KTHREAD), but you get the idea...

