perf_counter: Push inherit into perf_counter_alloc()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 22 Jun 2009 11:57:40 +0000 (13:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 23 Jun 2009 09:42:45 +0000 (11:42 +0200)
commitb84fbc9fb1d943e2c5f4efe52ed0e3c93a4bdb6a
treeaaa492fd620de2177c6b8e5bb52348b30c7e49c7
parentf29ac756a40d0f1bb07d682ea521e7b666ff06d5
perf_counter: Push inherit into perf_counter_alloc()

Teach perf_counter_alloc() about inheritance so that we can
optimize the inherit path in the next patch.

Remove the child_counter->atrr.inherit = 1 line because the
only way to get there is if parent_counter->attr.inherit == 1
and we copy the attrs.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c