aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/perf_event.h5
-rw-r--r--kernel/events/core.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 2e069d1288df..8f4a70f2eca8 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -319,7 +319,10 @@ struct perf_event {
319 */ 319 */
320 struct list_head migrate_entry; 320 struct list_head migrate_entry;
321 321
322 struct hlist_node hlist_entry; 322 union {
323 struct hlist_node hlist_entry;
324 struct list_head active_entry;
325 };
323 int nr_siblings; 326 int nr_siblings;
324 int group_flags; 327 int group_flags;
325 struct perf_event *group_leader; 328 struct perf_event *group_leader;
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 72348dc192c1..403b781daafb 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -6655,6 +6655,7 @@ perf_event_alloc(struct perf_event_attr *attr, int cpu,
6655 INIT_LIST_HEAD(&event->event_entry); 6655 INIT_LIST_HEAD(&event->event_entry);
6656 INIT_LIST_HEAD(&event->sibling_list); 6656 INIT_LIST_HEAD(&event->sibling_list);
6657 INIT_LIST_HEAD(&event->rb_entry); 6657 INIT_LIST_HEAD(&event->rb_entry);
6658 INIT_LIST_HEAD(&event->active_entry);
6658 6659
6659 init_waitqueue_head(&event->waitq); 6660 init_waitqueue_head(&event->waitq);
6660 init_irq_work(&event->pending, perf_pending_event); 6661 init_irq_work(&event->pending, perf_pending_event);