diff options
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 3b80cbf509ef..057bf22a8323 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -903,21 +903,13 @@ extern atomic_t perf_task_events; | |||
903 | 903 | ||
904 | static inline void perf_event_task_sched_in(struct task_struct *task) | 904 | static inline void perf_event_task_sched_in(struct task_struct *task) |
905 | { | 905 | { |
906 | JUMP_LABEL(&perf_task_events, have_events); | 906 | COND_STMT(&perf_task_events, __perf_event_task_sched_in(task)); |
907 | return; | ||
908 | |||
909 | have_events: | ||
910 | __perf_event_task_sched_in(task); | ||
911 | } | 907 | } |
912 | 908 | ||
913 | static inline | 909 | static inline |
914 | void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next) | 910 | void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next) |
915 | { | 911 | { |
916 | JUMP_LABEL(&perf_task_events, have_events); | 912 | COND_STMT(&perf_task_events, __perf_event_task_sched_out(task, next)); |
917 | return; | ||
918 | |||
919 | have_events: | ||
920 | __perf_event_task_sched_out(task, next); | ||
921 | } | 913 | } |
922 | 914 | ||
923 | extern int perf_event_init_task(struct task_struct *child); | 915 | extern int perf_event_init_task(struct task_struct *child); |