On 28 Apr 2023 21:54:51 +0000 Bernd Schubert <bschubert@xxxxxxx> > > @@ -7424,6 +7424,8 @@ select_task_rq_fair(struct task_struct * > > if (wake_flags & WF_TTWU) { > > record_wakee(p); > > > > + if (p->seesaw && current->seesaw) > > + return cpu; > > if (sched_energy_enabled()) { > > new_cpu = find_energy_efficient_cpu(p, prev_cpu); > > if (new_cpu >= 0) > > Hmm, WF_CURRENT_CPU works rather similar, except that it tests if cpu is > in cpus_ptr? The combination of both patches results in I missed checking cpu against p. Good catch.