diff -drupN a/kernel/exit.c b/kernel/exit.c --- a/kernel/exit.c 2018-08-06 17:23:04.000000000 +0300 +++ b/kernel/exit.c 2022-06-12 05:28:14.000000000 +0300 @@ -55,6 +55,8 @@ #include #include +#include "sched/tune.h" + #include #include #include @@ -775,6 +777,9 @@ void __noreturn do_exit(long code) } exit_signals(tsk); /* sets PF_EXITING */ + + schedtune_exit_task(tsk); + /* * Ensure that all new tsk->pi_lock acquisitions must observe * PF_EXITING. Serializes against futex.c:attach_to_pi_owner().