From: Peter Zijlstra Date: Fri, 29 May 2009 12:25:58 +0000 (+0200) Subject: perf_counter: Ammend cleanup in fork() fail X-Git-Tag: v2.6.31-rc1~383^2~153 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbbee90829304d156c12b171c0ac7e6e1aba8b90;p=pandora-kernel.git perf_counter: Ammend cleanup in fork() fail 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 Cc: Mike Galbraith Cc: Paul Mackerras Cc: Corey Ashford Cc: Marcelo Tosatti Cc: Arnaldo Carvalho de Melo Cc: John Kacur LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed