Commit 595258aa authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf_counter: x86: fix 32-bit irq_period assumption

No need to assume the irq_period is 32bit.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent f541ae32
...@@ -449,7 +449,7 @@ __hw_perf_counter_set_period(struct perf_counter *counter, ...@@ -449,7 +449,7 @@ __hw_perf_counter_set_period(struct perf_counter *counter,
struct hw_perf_counter *hwc, int idx) struct hw_perf_counter *hwc, int idx)
{ {
s64 left = atomic64_read(&hwc->period_left); s64 left = atomic64_read(&hwc->period_left);
s32 period = hwc->irq_period; s64 period = hwc->irq_period;
int err; int err;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment