• Peter Zijlstra's avatar
    perf_counter: Optimize disable of time based sw counters · b986d7ec
    Peter Zijlstra authored
    Currently we call hrtimer_cancel() unconditionally on disable of time based
    software counters. Avoid when possible.
    
    [ 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: Thomas Gleixner <tglx@linutronix.de>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    Cc: John Kacur <jkacur@redhat.com>
    LKML-Reference: <20090520102553.388185031@chello.nl>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    b986d7ec
perf_counter.c 82.3 KB