Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268996
b: refs/heads/master
c: 7e5b2a0
h: refs/heads/master
v: v3
  • Loading branch information
Mark Rutland authored and Ingo Molnar committed Aug 14, 2011
1 parent 601ade1 commit 1329bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 144060fee07e9c22e179d00819c83c86fbcbf82c
refs/heads/master: 7e5b2a01d2ca2eae4ef913b59f84341f9a70e206
4 changes: 2 additions & 2 deletions trunk/kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5716,13 +5716,15 @@ struct pmu *perf_init_event(struct perf_event *event)
pmu = idr_find(&pmu_idr, event->attr.type);
rcu_read_unlock();
if (pmu) {
event->pmu = pmu;
ret = pmu->event_init(event);
if (ret)
pmu = ERR_PTR(ret);
goto unlock;
}

list_for_each_entry_rcu(pmu, &pmus, entry) {
event->pmu = pmu;
ret = pmu->event_init(event);
if (!ret)
goto unlock;
Expand Down Expand Up @@ -5849,8 +5851,6 @@ perf_event_alloc(struct perf_event_attr *attr, int cpu,
return ERR_PTR(err);
}

event->pmu = pmu;

if (!event->parent) {
if (event->attach_state & PERF_ATTACH_TASK)
jump_label_inc(&perf_sched_events);
Expand Down

0 comments on commit 1329bf6

Please sign in to comment.