From: Peter Zijlstra Date: Fri, 20 Nov 2009 21:19:50 +0000 (+0100) Subject: perf: Optimize perf_event_task_sched_out X-Git-Tag: v2.6.33-rc1~399^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02ffdbc866c8b1c8644601e9aa6155700eed4c91;p=pandora-kernel.git perf: Optimize perf_event_task_sched_out Remove an update_context_time() call from the perf_event_task_sched_out() path and into the branch its needed. The call was both superfluous, because __perf_event_sched_out() already does it, and wrong, because it was done without holding ctx->lock. Place it in perf_event_sync_stat(), which is the only place it is needed and which does already hold ctx->lock. Signed-off-by: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <20091120212508.779516394@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed