Commit d94ddc97 authored by Philippe Gerum's avatar Philippe Gerum

sched: ipipe: announce task exit

Emit IPIPE_KEVT_EXIT from do_exit() to the co-kernel before the
current task has dropped the files and mappings it owns.
parent 88e379f8
......@@ -56,6 +56,7 @@
#include <trace/events/sched.h>
#include <linux/hw_breakpoint.h>
#include <linux/oom.h>
#include <linux/ipipe.h>
#include <linux/writeback.h>
#include <linux/shm.h>
#include <linux/kcov.h>
......@@ -830,6 +831,7 @@ void __noreturn do_exit(long code)
*/
raw_spin_lock_irq(&tsk->pi_lock);
raw_spin_unlock_irq(&tsk->pi_lock);
__ipipe_report_exit(tsk);
if (unlikely(in_atomic())) {
pr_info("note: %s[%d] exited with preempt_count %d\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment