Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200300
b: refs/heads/master
c: 84bb671
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jun 8, 2010
1 parent f5585af commit 032bf95
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: 238c1a78c957f3dc7cb848b161dcf4805793ed56
refs/heads/master: 84bb671dc46d77d665d2b5e74539e81b2129bb3e
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 032bf95

Please sign in to comment.