diff --git a/kernel/sched.c b/kernel/sched.c index 3aaa5c8cb4214586bd283eedc2375baa3dc739c0..a66e85639de2e541dd9726245cd344d3ea2d9f3b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -5887,6 +5887,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu) next = pick_next_task(rq, rq->curr); if (!next) break; + next->sched_class->put_prev_task(rq, next); migrate_dead(dead_cpu, next); }