• P
    perf: Optimize perf_event_task_sched_out · 02ffdbc8
    Peter Zijlstra 提交于
    Remove an update_context_time() call from the
    perf_event_task_sched_out() path and into the branch its needed.
    
    The call was both superfluous, because __perf_event_sched_out()
    already does it, and wrong, because it was done without holding
    ctx->lock.
    
    Place it in perf_event_sync_stat(), which is the only place it
    is needed and which does already hold ctx->lock.
    Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    LKML-Reference: <20091120212508.779516394@chello.nl>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    02ffdbc8
perf_event.c 119.9 KB