diff options
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index b1f89122bf6a..564769cdb473 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -890,6 +890,7 @@ struct perf_event_context { | |||
890 | int nr_active; | 890 | int nr_active; |
891 | int is_active; | 891 | int is_active; |
892 | int nr_stat; | 892 | int nr_stat; |
893 | int nr_freq; | ||
893 | int rotate_disable; | 894 | int rotate_disable; |
894 | atomic_t refcount; | 895 | atomic_t refcount; |
895 | struct task_struct *task; | 896 | struct task_struct *task; |
@@ -1063,12 +1064,12 @@ perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr) | |||
1063 | } | 1064 | } |
1064 | } | 1065 | } |
1065 | 1066 | ||
1066 | extern struct jump_label_key perf_sched_events; | 1067 | extern struct jump_label_key_deferred perf_sched_events; |
1067 | 1068 | ||
1068 | static inline void perf_event_task_sched_in(struct task_struct *prev, | 1069 | static inline void perf_event_task_sched_in(struct task_struct *prev, |
1069 | struct task_struct *task) | 1070 | struct task_struct *task) |
1070 | { | 1071 | { |
1071 | if (static_branch(&perf_sched_events)) | 1072 | if (static_branch(&perf_sched_events.key)) |
1072 | __perf_event_task_sched_in(prev, task); | 1073 | __perf_event_task_sched_in(prev, task); |
1073 | } | 1074 | } |
1074 | 1075 | ||
@@ -1077,7 +1078,7 @@ static inline void perf_event_task_sched_out(struct task_struct *prev, | |||
1077 | { | 1078 | { |
1078 | perf_sw_event(PERF_COUNT_SW_CONTEXT_SWITCHES, 1, NULL, 0); | 1079 | perf_sw_event(PERF_COUNT_SW_CONTEXT_SWITCHES, 1, NULL, 0); |
1079 | 1080 | ||
1080 | if (static_branch(&perf_sched_events)) | 1081 | if (static_branch(&perf_sched_events.key)) |
1081 | __perf_event_task_sched_out(prev, next); | 1082 | __perf_event_task_sched_out(prev, next); |
1082 | } | 1083 | } |
1083 | 1084 | ||