Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223839
b: refs/heads/master
c: 9639882
h: refs/heads/master
i:
  223837: 7855bf0
  223835: f6337f5
  223831: 50fdf16
  223823: 784dced
  223807: 90282ad
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Nov 26, 2010
1 parent 69be9ad commit 0d8a730
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 5d508e820a23d9b6e8a149dfaa8ba5cbedf3d95c
refs/heads/master: 963988262c3c8f4234f64a0dde59446a295e07bb
7 changes: 7 additions & 0 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -4240,6 +4240,13 @@ static int __perf_event_overflow(struct perf_event *event, int nmi,
struct hw_perf_event *hwc = &event->hw;
int ret = 0;

/*
* Non-sampling counters might still use the PMI to fold short
* hardware counters, ignore those.
*/
if (unlikely(!is_sampling_event(event)))
return 0;

if (!throttle) {
hwc->interrupts++;
} else {
Expand Down

0 comments on commit 0d8a730

Please sign in to comment.