Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191344
b: refs/heads/master
c: e3174cf
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed May 11, 2010
1 parent 24e299f commit 5e36200
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 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: e61a639a794063d78fd248a37ce2c21d5c81fc19
refs/heads/master: e3174cfd2a1e28fff774681f00a0eef3d31da970
1 change: 0 additions & 1 deletion trunk/include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ struct pmu {
* enum perf_event_active_state - the states of a event
*/
enum perf_event_active_state {
PERF_EVENT_STATE_FREE = -3,
PERF_EVENT_STATE_ERROR = -2,
PERF_EVENT_STATE_OFF = -1,
PERF_EVENT_STATE_INACTIVE = 0,
Expand Down
5 changes: 0 additions & 5 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,6 @@ list_del_event(struct perf_event *event, struct perf_event_context *ctx)
if (event->state > PERF_EVENT_STATE_OFF)
event->state = PERF_EVENT_STATE_OFF;

if (event->state > PERF_EVENT_STATE_FREE)
return;

/*
* If this was a group event with sibling events then
* upgrade the siblings to singleton events by adding them
Expand Down Expand Up @@ -1871,8 +1868,6 @@ int perf_event_release_kernel(struct perf_event *event)
{
struct perf_event_context *ctx = event->ctx;

event->state = PERF_EVENT_STATE_FREE;

WARN_ON_ONCE(ctx->parent_ctx);
/*
* There are two ways this annotation is useful:
Expand Down

0 comments on commit 5e36200

Please sign in to comment.