From: Peter Zijlstra Date: Mon, 22 Jun 2009 11:58:35 +0000 (+0200) Subject: perf_counter: Optimize perf_counter_alloc()'s inherit case X-Git-Tag: v2.6.31-rc2~30^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f344011ccb85469445369153c3d27c4ee4bc2ac8;p=pandora-kernel.git perf_counter: Optimize perf_counter_alloc()'s inherit case We don't need to add usage counts for swcounter and attr usage models for inherited counters since the parent counter will always have one, which suffices to generate the needed output. This avoids up to 3 global atomic increments per inherited counter. LKML-Reference: Signed-off-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed