• Peter Zijlstra's avatar
    perf: Optimize perf_disable · 32975a4f
    Peter Zijlstra authored
    Currently we always call hw_perf_disable(), even if its already disabled,
    this seems superflous, esp. since it cannot be made NMI safe (see further
    patches).
    Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
    LKML-Reference: <new-submission>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    32975a4f
perf_event.c 126 KB