diff options
-rw-r--r-- | kernel/perf_event.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index e66f6c400d13..af150bbcfc5b 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
@@ -1061,8 +1061,6 @@ static int context_equiv(struct perf_event_context *ctx1, | |||
1061 | && !ctx1->pin_count && !ctx2->pin_count; | 1061 | && !ctx1->pin_count && !ctx2->pin_count; |
1062 | } | 1062 | } |
1063 | 1063 | ||
1064 | static void __perf_event_read(void *event); | ||
1065 | |||
1066 | static void __perf_event_sync_stat(struct perf_event *event, | 1064 | static void __perf_event_sync_stat(struct perf_event *event, |
1067 | struct perf_event *next_event) | 1065 | struct perf_event *next_event) |
1068 | { | 1066 | { |
@@ -1080,8 +1078,8 @@ static void __perf_event_sync_stat(struct perf_event *event, | |||
1080 | */ | 1078 | */ |
1081 | switch (event->state) { | 1079 | switch (event->state) { |
1082 | case PERF_EVENT_STATE_ACTIVE: | 1080 | case PERF_EVENT_STATE_ACTIVE: |
1083 | __perf_event_read(event); | 1081 | event->pmu->read(event); |
1084 | break; | 1082 | /* fall-through */ |
1085 | 1083 | ||
1086 | case PERF_EVENT_STATE_INACTIVE: | 1084 | case PERF_EVENT_STATE_INACTIVE: |
1087 | update_event_times(event); | 1085 | update_event_times(event); |