diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/perf_counter.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index be10b3ffe320..c3db52dc876a 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -334,9 +334,9 @@ struct hw_perf_counter { | |||
334 | struct perf_counter; | 334 | struct perf_counter; |
335 | 335 | ||
336 | /** | 336 | /** |
337 | * struct hw_perf_counter_ops - performance counter hw ops | 337 | * struct pmu - generic performance monitoring unit |
338 | */ | 338 | */ |
339 | struct hw_perf_counter_ops { | 339 | struct pmu { |
340 | int (*enable) (struct perf_counter *counter); | 340 | int (*enable) (struct perf_counter *counter); |
341 | void (*disable) (struct perf_counter *counter); | 341 | void (*disable) (struct perf_counter *counter); |
342 | void (*read) (struct perf_counter *counter); | 342 | void (*read) (struct perf_counter *counter); |
@@ -381,7 +381,7 @@ struct perf_counter { | |||
381 | struct list_head sibling_list; | 381 | struct list_head sibling_list; |
382 | int nr_siblings; | 382 | int nr_siblings; |
383 | struct perf_counter *group_leader; | 383 | struct perf_counter *group_leader; |
384 | const struct hw_perf_counter_ops *hw_ops; | 384 | const struct pmu *pmu; |
385 | 385 | ||
386 | enum perf_counter_active_state state; | 386 | enum perf_counter_active_state state; |
387 | enum perf_counter_active_state prev_state; | 387 | enum perf_counter_active_state prev_state; |
@@ -519,8 +519,7 @@ struct perf_cpu_context { | |||
519 | */ | 519 | */ |
520 | extern int perf_max_counters; | 520 | extern int perf_max_counters; |
521 | 521 | ||
522 | extern const struct hw_perf_counter_ops * | 522 | extern const struct pmu *hw_perf_counter_init(struct perf_counter *counter); |
523 | hw_perf_counter_init(struct perf_counter *counter); | ||
524 | 523 | ||
525 | extern void perf_counter_task_sched_in(struct task_struct *task, int cpu); | 524 | extern void perf_counter_task_sched_in(struct task_struct *task, int cpu); |
526 | extern void perf_counter_task_sched_out(struct task_struct *task, int cpu); | 525 | extern void perf_counter_task_sched_out(struct task_struct *task, int cpu); |