aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/exit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 4741376c8dec..16d74f13a3e7 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -128,6 +128,12 @@ static void __exit_signal(struct task_struct *tsk)
128 sig = NULL; /* Marker for below. */ 128 sig = NULL; /* Marker for below. */
129 } 129 }
130 130
131 /*
132 * Flush inherited counters to the parent - before the parent
133 * gets woken up by child-exit notifications.
134 */
135 perf_counter_exit_task(tsk);
136
131 __unhash_process(tsk); 137 __unhash_process(tsk);
132 138
133 /* 139 /*