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 /arch/powerpc/kernel/perf_event.c | |
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 'arch/powerpc/kernel/perf_event.c')
-rw-r--r-- | arch/powerpc/kernel/perf_event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/perf_event.c b/arch/powerpc/kernel/perf_event.c index d301a30445e..5f78681ad90 100644 --- a/arch/powerpc/kernel/perf_event.c +++ b/arch/powerpc/kernel/perf_event.c | |||
@@ -857,7 +857,7 @@ static void power_pmu_unthrottle(struct perf_event *event) | |||
857 | * Set the flag to make pmu::enable() not perform the | 857 | * Set the flag to make pmu::enable() not perform the |
858 | * schedulability test, it will be performed at commit time | 858 | * schedulability test, it will be performed at commit time |
859 | */ | 859 | */ |
860 | void power_pmu_start_txn(const struct pmu *pmu) | 860 | void power_pmu_start_txn(struct pmu *pmu) |
861 | { | 861 | { |
862 | struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); | 862 | struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); |
863 | 863 | ||
@@ -870,7 +870,7 @@ void power_pmu_start_txn(const struct pmu *pmu) | |||
870 | * Clear the flag and pmu::enable() will perform the | 870 | * Clear the flag and pmu::enable() will perform the |
871 | * schedulability test. | 871 | * schedulability test. |
872 | */ | 872 | */ |
873 | void power_pmu_cancel_txn(const struct pmu *pmu) | 873 | void power_pmu_cancel_txn(struct pmu *pmu) |
874 | { | 874 | { |
875 | struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); | 875 | struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); |
876 | 876 | ||
@@ -882,7 +882,7 @@ void power_pmu_cancel_txn(const struct pmu *pmu) | |||
882 | * Perform the group schedulability test as a whole | 882 | * Perform the group schedulability test as a whole |
883 | * Return 0 if success | 883 | * Return 0 if success |
884 | */ | 884 | */ |
885 | int power_pmu_commit_txn(const struct pmu *pmu) | 885 | int power_pmu_commit_txn(struct pmu *pmu) |
886 | { | 886 | { |
887 | struct cpu_hw_events *cpuhw; | 887 | struct cpu_hw_events *cpuhw; |
888 | long i, n; | 888 | long i, n; |
@@ -1014,7 +1014,7 @@ static int hw_perf_cache_event(u64 config, u64 *eventp) | |||
1014 | return 0; | 1014 | return 0; |
1015 | } | 1015 | } |
1016 | 1016 | ||
1017 | const struct pmu *hw_perf_event_init(struct perf_event *event) | 1017 | struct pmu *hw_perf_event_init(struct perf_event *event) |
1018 | { | 1018 | { |
1019 | u64 ev; | 1019 | u64 ev; |
1020 | unsigned long flags; | 1020 | unsigned long flags; |