diff options
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r-- | kernel/perf_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index 1f14481c2337..fb851ec34461 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -294,6 +294,8 @@ list_del_event(struct perf_event *event, struct perf_event_context *ctx) | |||
294 | if (event->group_leader != event) | 294 | if (event->group_leader != event) |
295 | event->group_leader->nr_siblings--; | 295 | event->group_leader->nr_siblings--; |
296 | 296 | ||
297 | event->state = PERF_EVENT_STATE_OFF; | ||
298 | |||
297 | /* | 299 | /* |
298 | * If this was a group event with sibling events then | 300 | * If this was a group event with sibling events then |
299 | * upgrade the siblings to singleton events by adding them | 301 | * upgrade the siblings to singleton events by adding them |