diff options
Diffstat (limited to 'include/linux/perf_event.h')
| -rw-r--r-- | include/linux/perf_event.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index f495c0147240..ee9f1e782800 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
| @@ -662,7 +662,7 @@ struct pmu { | |||
| 662 | int (*commit_txn) (struct pmu *pmu); /* optional */ | 662 | int (*commit_txn) (struct pmu *pmu); /* optional */ |
| 663 | /* | 663 | /* |
| 664 | * Will cancel the transaction, assumes ->del() is called | 664 | * Will cancel the transaction, assumes ->del() is called |
| 665 | * for each successfull ->add() during the transaction. | 665 | * for each successful ->add() during the transaction. |
| 666 | */ | 666 | */ |
| 667 | void (*cancel_txn) (struct pmu *pmu); /* optional */ | 667 | void (*cancel_txn) (struct pmu *pmu); /* optional */ |
| 668 | }; | 668 | }; |
| @@ -938,9 +938,7 @@ struct perf_cpu_context { | |||
| 938 | struct list_head rotation_list; | 938 | struct list_head rotation_list; |
| 939 | int jiffies_interval; | 939 | int jiffies_interval; |
| 940 | struct pmu *active_pmu; | 940 | struct pmu *active_pmu; |
| 941 | #ifdef CONFIG_CGROUP_PERF | ||
| 942 | struct perf_cgroup *cgrp; | 941 | struct perf_cgroup *cgrp; |
| 943 | #endif | ||
| 944 | }; | 942 | }; |
| 945 | 943 | ||
| 946 | struct perf_output_handle { | 944 | struct perf_output_handle { |
| @@ -1088,7 +1086,7 @@ void perf_event_task_sched_out(struct task_struct *task, struct task_struct *nex | |||
| 1088 | { | 1086 | { |
| 1089 | perf_sw_event(PERF_COUNT_SW_CONTEXT_SWITCHES, 1, 1, NULL, 0); | 1087 | perf_sw_event(PERF_COUNT_SW_CONTEXT_SWITCHES, 1, 1, NULL, 0); |
| 1090 | 1088 | ||
| 1091 | COND_STMT(&perf_sched_events, __perf_event_task_sched_out(task, next)); | 1089 | __perf_event_task_sched_out(task, next); |
| 1092 | } | 1090 | } |
| 1093 | 1091 | ||
| 1094 | extern void perf_event_mmap(struct vm_area_struct *vma); | 1092 | extern void perf_event_mmap(struct vm_area_struct *vma); |
