aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2009-12-09 11:29:44 +0800
committerIngo Molnar <mingo@elte.hu>2009-12-09 09:56:27 +0100
commitb93f7978ad6b46133e9453b90ccc057dc2429e75 (patch)
treef3420ebd5fa80ddb1a4c3e302a64861146104385 /kernel/sysctl.c
parentaa5452d70c0d559310598b243b8b1033c10056e7 (diff)
downloadkernel_samsung_espresso10-b93f7978ad6b46133e9453b90ccc057dc2429e75.zip
kernel_samsung_espresso10-b93f7978ad6b46133e9453b90ccc057dc2429e75.tar.gz
kernel_samsung_espresso10-b93f7978ad6b46133e9453b90ccc057dc2429e75.tar.bz2
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/sysctl.c')
0 files changed, 0 insertions, 0 deletions