Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304890
b: refs/heads/master
c: fc006cf
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter authored and Ingo Molnar committed May 9, 2012
1 parent 5558528 commit ab9ad42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 98112d2e957e0d348f06d8a40f2f720204a70b55
refs/heads/master: fc006cf7cc7471e1bdf34e40111971e03622af6c
5 changes: 1 addition & 4 deletions trunk/arch/x86/kernel/cpu/perf_event_amd_ibs.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,13 @@ perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *hw_perio
overflow = 1;
}

if (unlikely(left <= 0)) {
if (unlikely(left < (s64)min)) {
left += period;
local64_set(&hwc->period_left, left);
hwc->last_period = period;
overflow = 1;
}

if (unlikely(left < min))
left = min;

if (left > max)
left = max;

Expand Down

0 comments on commit ab9ad42

Please sign in to comment.