Skip to content

Commit

Permalink
perf_counter: x86: fix 32-bit irq_period assumption
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 6, 2009
1 parent f541ae3 commit 595258a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 595258a

Please sign in to comment.