[PATCH] libata: implement dummy port
[firefly-linux-kernel-4.4.55.git] / kernel / exit.c
index 9852ed8c29885f5b5c808accc92cb2a73e5c85e0..dba194a8d41619d689d4e53f9819bb51583cb72c 100644 (file)
@@ -845,8 +845,9 @@ 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;
+       unsigned int mycpu;
 
        profile_task_exit(tsk);
 
@@ -884,7 +885,7 @@ fastcall NORET_TYPE void do_exit(long code)
                                current->comm, current->pid,
                                preempt_count());
 
-       taskstats_exit_alloc(&tidstats, &tgidstats);
+       taskstats_exit_alloc(&tidstats, &mycpu);
 
        acct_update_integrals(tsk);
        if (tsk->mm) {
@@ -905,8 +906,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, mycpu);
+       taskstats_exit_free(tidstats);
        delayacct_tsk_exit(tsk);
 
        exit_mm(tsk);