aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2009-12-08 22:29:44 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-09 03:56:27 -0500
commitb93f7978ad6b46133e9453b90ccc057dc2429e75 (patch)
treef3420ebd5fa80ddb1a4c3e302a64861146104385 /kernel/exit.c
parentaa5452d70c0d559310598b243b8b1033c10056e7 (diff)
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 <xiaoguangrong@cn.fujitsu.com> Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <4B1F19A8.5040805@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions