Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356401
b: refs/heads/master
c: f53d168
h: refs/heads/master
i:
  356399: 973d2c7
v: v3
  • Loading branch information
sukadev@linux.vnet.ibm.com authored and Benjamin Herrenschmidt committed Jan 29, 2013
1 parent cc3de64 commit ac50856
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 94c95cfbfe784eca5f4b96955e41bda1318605bc
refs/heads/master: f53d168c025f27d64417a56bf129dbb39d2e1189
8 changes: 8 additions & 0 deletions trunk/arch/powerpc/perf/core-book3s.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,16 @@ static int power_pmu_add(struct perf_event *event, int ef_flags)
cpuhw->events[n0] = event->hw.config;
cpuhw->flags[n0] = event->hw.event_base;

/*
* This event may have been disabled/stopped in record_and_restart()
* because we exceeded the ->event_limit. If re-starting the event,
* clear the ->hw.state (STOPPED and UPTODATE flags), so the user
* notification is re-enabled.
*/
if (!(ef_flags & PERF_EF_START))
event->hw.state = PERF_HES_STOPPED | PERF_HES_UPTODATE;
else
event->hw.state = 0;

/*
* If group events scheduling transaction was started,
Expand Down

0 comments on commit ac50856

Please sign in to comment.