summaryrefslogtreecommitdiffstats
path: root/samples/kobject
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-22 13:58:35 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-23 11:42:46 +0200
commitf344011ccb85469445369153c3d27c4ee4bc2ac8 (patch)
tree66f041a826d09c690a5e6bb3d091494d52bc8565 /samples/kobject
parentb84fbc9fb1d943e2c5f4efe52ed0e3c93a4bdb6a (diff)
downloadlinux-f344011ccb85469445369153c3d27c4ee4bc2ac8.tar.gz
linux-f344011ccb85469445369153c3d27c4ee4bc2ac8.tar.bz2
linux-f344011ccb85469445369153c3d27c4ee4bc2ac8.zip
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: <new-submission> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'samples/kobject')
0 files changed, 0 insertions, 0 deletions