diff options
author | Peter Zijlstra <[email protected]> | 2009-06-19 18:27:26 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-06-23 11:42:44 +0200 |
commit | f29ac756a40d0f1bb07d682ea521e7b666ff06d5 (patch) | |
tree | 6fabe2f38ae10f824e57fdd5b035ba81b75a71a8 /net/lapb/lapb_timer.c | |
parent | 3d906ef10a539ff336010afab8f6f9c4fe379695 (diff) |
perf_counter: Optimize perf_swcounter_event()
Similar to tracepoints, use an enable variable to reduce
overhead when unused.
Only look for a counter of a particular event type when we know
there is at least one in the system.
Signed-off-by: Peter Zijlstra <[email protected]>
LKML-Reference: <new-submission>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions