diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-06-11 07:35:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-09-09 14:46:27 -0400 |
commit | 51b0fe39549a04858001922919ab355dee9bdfcf (patch) | |
tree | 024768dd0c87e890edf76e129820ea0cdf16a257 /include/linux/perf_event.h | |
parent | 2aa61274efb9f532deaebc9812675a27af1994cb (diff) |
perf: Deconstify struct pmu
sed -ie 's/const struct pmu\>/struct pmu/g' `git grep -l "const struct pmu\>"`
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: paulus <paulus@samba.org>
Cc: stephane eranian <eranian@googlemail.com>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Lin Ming <ming.m.lin@intel.com>
Cc: Yanmin <yanmin_zhang@linux.intel.com>
Cc: Deng-Cheng Zhu <dengcheng.zhu@gmail.com>
Cc: David Miller <davem@davemloft.net>
Cc: Michael Cree <mcree@orcon.net.nz>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 000610c4de71..09d048b52115 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h | |||
@@ -578,19 +578,19 @@ struct pmu { | |||
578 | * Start the transaction, after this ->enable() doesn't need | 578 | * Start the transaction, after this ->enable() doesn't need |
579 | * to do schedulability tests. | 579 | * to do schedulability tests. |
580 | */ | 580 | */ |
581 | void (*start_txn) (const struct pmu *pmu); | 581 | void (*start_txn) (struct pmu *pmu); |
582 | /* | 582 | /* |
583 | * If ->start_txn() disabled the ->enable() schedulability test | 583 | * If ->start_txn() disabled the ->enable() schedulability test |
584 | * then ->commit_txn() is required to perform one. On success | 584 | * then ->commit_txn() is required to perform one. On success |
585 | * the transaction is closed. On error the transaction is kept | 585 | * the transaction is closed. On error the transaction is kept |
586 | * open until ->cancel_txn() is called. | 586 | * open until ->cancel_txn() is called. |
587 | */ | 587 | */ |
588 | int (*commit_txn) (const struct pmu *pmu); | 588 | int (*commit_txn) (struct pmu *pmu); |
589 | /* | 589 | /* |
590 | * Will cancel the transaction, assumes ->disable() is called for | 590 | * Will cancel the transaction, assumes ->disable() is called for |
591 | * each successfull ->enable() during the transaction. | 591 | * each successfull ->enable() during the transaction. |
592 | */ | 592 | */ |
593 | void (*cancel_txn) (const struct pmu *pmu); | 593 | void (*cancel_txn) (struct pmu *pmu); |
594 | }; | 594 | }; |
595 | 595 | ||
596 | /** | 596 | /** |
@@ -669,7 +669,7 @@ struct perf_event { | |||
669 | int nr_siblings; | 669 | int nr_siblings; |
670 | int group_flags; | 670 | int group_flags; |
671 | struct perf_event *group_leader; | 671 | struct perf_event *group_leader; |
672 | const struct pmu *pmu; | 672 | struct pmu *pmu; |
673 | 673 | ||
674 | enum perf_event_active_state state; | 674 | enum perf_event_active_state state; |
675 | unsigned int attach_state; | 675 | unsigned int attach_state; |
@@ -849,7 +849,7 @@ struct perf_output_handle { | |||
849 | */ | 849 | */ |
850 | extern int perf_max_events; | 850 | extern int perf_max_events; |
851 | 851 | ||
852 | extern const struct pmu *hw_perf_event_init(struct perf_event *event); | 852 | extern struct pmu *hw_perf_event_init(struct perf_event *event); |
853 | 853 | ||
854 | extern void perf_event_task_sched_in(struct task_struct *task); | 854 | extern void perf_event_task_sched_in(struct task_struct *task); |
855 | extern void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next); | 855 | extern void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next); |