firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-kernel_exit.c.patch

23 lines
601 B
Diff

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 <linux/shm.h>
#include <linux/kcov.h>
+#include "sched/tune.h"
+
#include <asm/uaccess.h>
#include <asm/unistd.h>
#include <asm/pgtable.h>
@@ -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().