aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/events
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 819ffc006d67..0de199729f04 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -1678,6 +1678,8 @@ event_sched_in(struct perf_event *event,
1678 u64 tstamp = perf_event_time(event); 1678 u64 tstamp = perf_event_time(event);
1679 int ret = 0; 1679 int ret = 0;
1680 1680
1681 lockdep_assert_held(&ctx->lock);
1682
1681 if (event->state <= PERF_EVENT_STATE_OFF) 1683 if (event->state <= PERF_EVENT_STATE_OFF)
1682 return 0; 1684 return 0;
1683 1685