lkml.org 
[lkml]   [2009]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 09/15] perf: optimize __perf_event_read()
    Both callers actually have IRQs disabled, no need doing so again.

    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    ---
    kernel/perf_event.c | 3 ---
    1 file changed, 3 deletions(-)

    Index: linux-2.6/kernel/perf_event.c
    ===================================================================
    --- linux-2.6.orig/kernel/perf_event.c
    +++ linux-2.6/kernel/perf_event.c
    @@ -1517,7 +1517,6 @@ static void __perf_event_read(void *info
    struct perf_cpu_context *cpuctx = &__get_cpu_var(perf_cpu_context);
    struct perf_event *event = info;
    struct perf_event_context *ctx = event->ctx;
    - unsigned long flags;

    /*
    * If this is a task context, we need to check whether it is
    @@ -1529,12 +1528,10 @@ static void __perf_event_read(void *info
    if (ctx->task && cpuctx->task_ctx != ctx)
    return;

    - local_irq_save(flags);
    if (ctx->is_active)
    update_context_time(ctx);
    event->pmu->read(event);
    update_event_times(event);
    - local_irq_restore(flags);
    }

    static u64 perf_event_read(struct perf_event *event)
    --



    \
     
     \ /
      Last update: 2009-11-20 22:33    [W:0.020 / U:60.804 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site