• Ingo Molnar's avatar
    perf_counter, x86: speed up the scheduling fast-path · b68f1d2e
    Ingo Molnar authored
    We have to set up the LVT entry only at counter init time, not at
    every switch-in time.
    
    There's friction between NMI and non-NMI use here - we'll probably
    remove the per counter configurability of it - but until then, dont
    slow down things ...
    
    [ Impact: micro-optimization ]
    
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Srivatsa Vaddagiri <vatsa@in.ibm.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    b68f1d2e
perf_counter.c 27.9 KB