X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fexit.c;h=e5ae36ebe8afda0efe91c14ad4eec30d313492f0;hb=bb4304c71c97bf727ec43cd2f195c2c237c27fd3;hp=ae2b92be5faec1efa73beefb63304a22d030fc16;hpb=d809a1595610a7c0b0bd55f159e5dc37def0ac28;p=karo-tx-linux.git diff --git a/kernel/exit.c b/kernel/exit.c index ae2b92be5fae..e5ae36ebe8af 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include /* for audit_free() */ #include @@ -54,6 +53,10 @@ #include #include +DEFINE_TRACE(sched_process_free); +DEFINE_TRACE(sched_process_exit); +DEFINE_TRACE(sched_process_wait); + static void exit_mm(struct task_struct * tsk); static inline int task_detached(struct task_struct *p) @@ -1059,14 +1062,6 @@ NORET_TYPE void do_exit(long code) exit_itimers(tsk->signal); } acct_collect(code, group_dead); -#ifdef CONFIG_FUTEX - if (unlikely(tsk->robust_list)) - exit_robust_list(tsk); -#ifdef CONFIG_COMPAT - if (unlikely(tsk->compat_robust_list)) - compat_exit_robust_list(tsk); -#endif -#endif if (group_dead) tty_audit_exit(); if (unlikely(tsk->audit_context)) @@ -1132,7 +1127,6 @@ NORET_TYPE void do_exit(long code) preempt_disable(); /* causes final put_task_struct in finish_task_switch(). */ tsk->state = TASK_DEAD; - schedule(); BUG(); /* Avoid "noreturn function does return". */