Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257022
b: refs/heads/master
c: e03a9a5
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 28, 2011
1 parent 1e7ce25 commit a16cd8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 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: dce5855bba5df9e87bb04584d505c1f1b103c652
refs/heads/master: e03a9a55b4e45377af9ca3d464135f9ea280b8f8
8 changes: 1 addition & 7 deletions trunk/kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2920,12 +2920,6 @@ int perf_event_release_kernel(struct perf_event *event)
{
struct perf_event_context *ctx = event->ctx;

/*
* Remove from the PMU, can't get re-enabled since we got
* here because the last ref went.
*/
perf_event_disable(event);

WARN_ON_ONCE(ctx->parent_ctx);
/*
* There are two ways this annotation is useful:
Expand All @@ -2942,8 +2936,8 @@ int perf_event_release_kernel(struct perf_event *event)
mutex_lock_nested(&ctx->mutex, SINGLE_DEPTH_NESTING);
raw_spin_lock_irq(&ctx->lock);
perf_group_detach(event);
list_del_event(event, ctx);
raw_spin_unlock_irq(&ctx->lock);
perf_remove_from_context(event);
mutex_unlock(&ctx->mutex);

free_event(event);
Expand Down

0 comments on commit a16cd8c

Please sign in to comment.