From: Peter Zijlstra Date: Mon, 22 Jun 2009 11:57:40 +0000 (+0200) Subject: perf_counter: Push inherit into perf_counter_alloc() X-Git-Tag: v2.6.31-rc2~30^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b84fbc9fb1d943e2c5f4efe52ed0e3c93a4bdb6a;p=pandora-kernel.git 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 Cc: Mike Galbraith Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed