Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334831
b: refs/heads/master
c: 3581fe0
h: refs/heads/master
i:
  334829: 376ece5
  334827: f300c7f
  334823: be8927b
  334815: d9e8f5d
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Oct 18, 2012
1 parent c16ef37 commit 7c3fdbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2456f44dd7a9aaffc2cd21a13f78198b3d94da08
refs/heads/master: 3581fe0ef37ce12ac7a4f74831168352ae848edc
4 changes: 4 additions & 0 deletions trunk/arch/arm/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ armpmu_event_set_period(struct perf_event *event,
s64 period = hwc->sample_period;
int ret = 0;

/* The period may have been changed by PERF_EVENT_IOC_PERIOD */
if (unlikely(period != hwc->last_period))
left = period - (hwc->last_period - left);

if (unlikely(left <= -period)) {
left = period;
local64_set(&hwc->period_left, left);
Expand Down

0 comments on commit 7c3fdbb

Please sign in to comment.