]> git.karo-electronics.de Git - linux-beck.git/commitdiff
perf_counter: x86: fix 32-bit irq_period assumption
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 13 Mar 2009 11:21:28 +0000 (12:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 6 Apr 2009 07:29:29 +0000 (09:29 +0200)
No need to assume the irq_period is 32bit.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c

index 155bc3c239b63fa5388b9f85684b6c0185e3657a..1cedc3468ce5b85f1a91db1938631f882c4de64c 100644 (file)
@@ -449,7 +449,7 @@ __hw_perf_counter_set_period(struct perf_counter *counter,
                             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;
 
        /*