projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf_counter: frequency based adaptive irq_period, 32-bit fix
[deliverable/linux.git]
/
kernel
/
perf_counter.c
diff --git
a/kernel/perf_counter.c
b/kernel/perf_counter.c
index 0ad1db4f3d65184fef3a557347276770952b1145..728a595399b00e7dc2218774b561aeb64dd31c0a 100644
(file)
--- a/
kernel/perf_counter.c
+++ b/
kernel/perf_counter.c
@@
-2942,7
+2942,7
@@
perf_counter_alloc(struct perf_counter_hw_event *hw_event,
hwc = &counter->hw;
if (hw_event->freq && hw_event->irq_freq)
- hwc->irq_period =
TICK_NSEC / hw_event->irq_freq
;
+ hwc->irq_period =
div64_u64(TICK_NSEC, hw_event->irq_freq)
;
else
hwc->irq_period = hw_event->irq_period;
This page took
0.029575 seconds
and
5
git commands to generate.