[PATCH] delay accounting taskstats interface send tgid once
[powerpc.git] / kernel / exit.c
index 9852ed8..67c1e9a 100644 (file)
@@ -845,7 +845,7 @@ static void exit_notify(struct task_struct *tsk)
 fastcall NORET_TYPE void do_exit(long code)
 {
        struct task_struct *tsk = current;
-       struct taskstats *tidstats, *tgidstats;
+       struct taskstats *tidstats;
        int group_dead;
 
        profile_task_exit(tsk);
@@ -884,7 +884,7 @@ fastcall NORET_TYPE void do_exit(long code)
                                current->comm, current->pid,
                                preempt_count());
 
-       taskstats_exit_alloc(&tidstats, &tgidstats);
+       taskstats_exit_alloc(&tidstats);
 
        acct_update_integrals(tsk);
        if (tsk->mm) {
@@ -905,8 +905,8 @@ fastcall NORET_TYPE void do_exit(long code)
 #endif
        if (unlikely(tsk->audit_context))
                audit_free(tsk);
-       taskstats_exit_send(tsk, tidstats, tgidstats);
-       taskstats_exit_free(tidstats, tgidstats);
+       taskstats_exit_send(tsk, tidstats, group_dead);
+       taskstats_exit_free(tidstats);
        delayacct_tsk_exit(tsk);
 
        exit_mm(tsk);