• Peter Zijlstra's avatar
    perf_counter: Optimize sched in/out of counters · afedadf2
    Peter Zijlstra authored
    Avoid a function call for !group counters by directly calling the counter
    function.
    
    [ Impact: micro-optimize the code ]
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Cc: John Kacur <jkacur@redhat.com>
    LKML-Reference: <20090520102553.511933670@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    afedadf2
perf_counter.c 82.6 KB