From: Xiao Guangrong Date: Wed, 9 Dec 2009 03:29:44 +0000 (+0800) Subject: perf_event: Allocate children's perf_event_ctxp at the right time X-Git-Tag: v2.6.33-rc1~306^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b93f7978ad6b46133e9453b90ccc057dc2429e75;p=pandora-kernel.git perf_event: Allocate children's perf_event_ctxp at the right time In current code, children task will allocate memory for 'child->perf_event_ctxp' if the parent is counted, we can do it only if the parent allowed children inherit it. It can save memory and reduce overhead. Signed-off-by: Xiao Guangrong Reviewed-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <4B1F19A8.5040805@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed