Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223837
b: refs/heads/master
c: 2e939d1
h: refs/heads/master
i:
  223835: f6337f5
v: v3
  • Loading branch information
Franck Bui-Huu authored and Ingo Molnar committed Nov 26, 2010
1 parent 6d8e85f commit 7855bf0
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 6c7e550f13f8ad82efb6a5653ae628c2543c1768
refs/heads/master: 2e939d1da9b5628642314c1e68b4319e61263c94
2 changes: 1 addition & 1 deletion trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ static int perf_event_refresh(struct perf_event *event, int refresh)
/*
* not supported on inherited events
*/
if (event->attr.inherit)
if (event->attr.inherit || !is_sampling_event(event))
return -EINVAL;

atomic_add(refresh, &event->event_limit);
Expand Down

0 comments on commit 7855bf0

Please sign in to comment.