diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-05-15 20:45:59 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-17 07:52:23 +0200 |
commit | 8bc2095951517e2c74b8aeeca4685ddd6b16ed4b (patch) | |
tree | 6342bfb21b642b22bd8f2d39f99faf4134de0cdb /kernel/exit.c | |
parent | 0bbd0d4be8d5d3676c126e06e3c75c16def00441 (diff) | |
download | linux-8bc2095951517e2c74b8aeeca4685ddd6b16ed4b.tar.bz2 |
perf_counter: Fix inheritance cleanup code
Clean up code that open-coded the list_{add,del}_counter() code in
__perf_counter_exit_task() which consequently diverged. This could
lead to software counter crashes.
Also, fold the ctx->nr_counter inc/dec into those functions and clean
up some of the related code.
[ Impact: fix potential sw counter crash, cleanup ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions