From: Gleb Natapov Date: Sun, 23 Oct 2011 17:10:33 +0000 (+0200) Subject: perf: Do not set task_ctx pointer in cpuctx if there are no events in the context X-Git-Tag: v3.2-rc5~42^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d5f003f5a964711853514b04ddc872eec0fdc7b;p=pandora-kernel.git perf: Do not set task_ctx pointer in cpuctx if there are no events in the context Do not set task_ctx pointer during sched_in if there are no events associated with the context. Otherwise if during task execution total number of events in the system will become zero perf_event_context_sched_out() will not be called and cpuctx->task_ctx will be left with a stale value. Signed-off-by: Gleb Natapov Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20111023171033.GI17571@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed