perf_counter: Ammend cleanup in fork() fail
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 29 May 2009 12:25:58 +0000 (14:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 29 May 2009 14:21:52 +0000 (16:21 +0200)
When fork() fails we cannot use perf_counter_exit_task() since that
assumes to operate on current. Write a new helper that cleans up
unused/clean contexts.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found