From: Peter Zijlstra Date: Fri, 15 May 2009 18:45:59 +0000 (+0200) Subject: perf_counter: Fix inheritance cleanup code X-Git-Tag: v2.6.31-rc1~383^2~262 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bc2095951517e2c74b8aeeca4685ddd6b16ed4b;p=pandora-kernel.git 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 Cc: Srivatsa Vaddagiri Cc: Paul Mackerras Cc: Corey Ashford Cc: Arnaldo Carvalho de Melo Cc: Marcelo Tosatti Signed-off-by: Ingo Molnar Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed