Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200298
b: refs/heads/master
c: f6ab91a
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jun 8, 2010
1 parent 9ba1d89 commit 35f6bf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 58cc1a9e3b11a84e66c4d3a4cc9073f2cb0ecabb
refs/heads/master: f6ab91add6355e231e1c47897027b2a6ee4fa268
5 changes: 4 additions & 1 deletion trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,6 +1507,9 @@ do { \
divisor = nsec * frequency;
}

if (!divisor)
return dividend;

return div64_u64(dividend, divisor);
}

Expand All @@ -1529,7 +1532,7 @@ static int perf_event_start(struct perf_event *event)
static void perf_adjust_period(struct perf_event *event, u64 nsec, u64 count)
{
struct hw_perf_event *hwc = &event->hw;
u64 period, sample_period;
s64 period, sample_period;
s64 delta;

period = perf_calculate_period(event, nsec, count);
Expand Down

0 comments on commit 35f6bf0

Please sign in to comment.