diff options
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r-- | kernel/perf_counter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 0ad1db4f3d65..728a595399b0 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -2942,7 +2942,7 @@ perf_counter_alloc(struct perf_counter_hw_event *hw_event, | |||
2942 | 2942 | ||
2943 | hwc = &counter->hw; | 2943 | hwc = &counter->hw; |
2944 | if (hw_event->freq && hw_event->irq_freq) | 2944 | if (hw_event->freq && hw_event->irq_freq) |
2945 | hwc->irq_period = TICK_NSEC / hw_event->irq_freq; | 2945 | hwc->irq_period = div64_u64(TICK_NSEC, hw_event->irq_freq); |
2946 | else | 2946 | else |
2947 | hwc->irq_period = hw_event->irq_period; | 2947 | hwc->irq_period = hw_event->irq_period; |
2948 | 2948 | ||