lkml.org 
[lkml]   [2009]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 3/4] perf_counter: x86: fix 32bit irq_period assumption.
    No need to assume the irq_period is 32bit.

    Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
    ---
    arch/x86/kernel/cpu/perf_counter.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6/arch/x86/kernel/cpu/perf_counter.c
    ===================================================================
    --- linux-2.6.orig/arch/x86/kernel/cpu/perf_counter.c
    +++ linux-2.6/arch/x86/kernel/cpu/perf_counter.c
    @@ -449,7 +449,7 @@ __hw_perf_counter_set_period(struct perf
    struct hw_perf_counter *hwc, int idx)
    {
    s64 left = atomic64_read(&hwc->period_left);
    - s32 period = hwc->irq_period;
    + s64 period = hwc->irq_period;
    int err;

    /*
    --



    \
     
     \ /
      Last update: 2009-03-10 15:27    [W:0.020 / U:0.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site