diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 06:47:21 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-12 06:47:21 +0100 |
commit | 53582c4c508a95ece9f7c907edef9911c7eb79eb (patch) | |
tree | c099e9880f7bf7d60e87dfa6a19cb4e8780ec860 /kernel/exit.c | |
parent | ARM: mach-shmobile: mackerel: Add touchscreen ST1232 support (diff) | |
parent | ARM: mach-shmobile: sh7372 Enable SDIO IRQs for Mackerel (diff) | |
download | linux-53582c4c508a95ece9f7c907edef9911c7eb79eb.tar.xz linux-53582c4c508a95ece9f7c907edef9911c7eb79eb.zip |
Merge branch 'rmobile/sdio' into rmobile-latest
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 89c74861a3da..f9a45ebcc7b1 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -994,6 +994,15 @@ NORET_TYPE void do_exit(long code) exit_fs(tsk); check_stack_usage(); exit_thread(); + + /* + * Flush inherited counters to the parent - before the parent + * gets woken up by child-exit notifications. + * + * because of cgroup mode, must be called before cgroup_exit() + */ + perf_event_exit_task(tsk); + cgroup_exit(tsk, 1); if (group_dead) @@ -1007,11 +1016,6 @@ NORET_TYPE void do_exit(long code) * FIXME: do that only when needed, using sched_exit tracepoint */ flush_ptrace_hw_breakpoint(tsk); - /* - * Flush inherited counters to the parent - before the parent - * gets woken up by child-exit notifications. - */ - perf_event_exit_task(tsk); exit_notify(tsk, group_dead); #ifdef CONFIG_NUMA |