diff options
author | Mark Rutland <mark.rutland@arm.com> | 2011-04-15 06:14:38 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-08-31 05:16:58 -0400 |
commit | a6c93afed38c242ccf4ec5bcb5ff26ff2521cf36 (patch) | |
tree | e99c2b3f3d03df77d497907afff9b7310b772fd1 /arch/arm/kernel/perf_event_v7.c | |
parent | 90e93648c41bd29a72f6ec55ce27a23c209eab8c (diff) |
ARM: perf: de-const struct arm_pmu
This patch removes const qualifiers from instances of struct arm_pmu,
and functions initialising them, in preparation for generalising
arm_pmu usage to system (AKA uncore) PMUs.
This will allow for dynamically modifiable structures (locks,
struct pmu) to be added as members of struct arm_pmu.
Acked-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/perf_event_v7.c')
-rw-r--r-- | arch/arm/kernel/perf_event_v7.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c index 4c851834f68e..74f9119906d0 100644 --- a/arch/arm/kernel/perf_event_v7.c +++ b/arch/arm/kernel/perf_event_v7.c | |||
@@ -1188,7 +1188,7 @@ static u32 __init armv7_read_num_pmnc_events(void) | |||
1188 | return nb_cnt + 1; | 1188 | return nb_cnt + 1; |
1189 | } | 1189 | } |
1190 | 1190 | ||
1191 | static const struct arm_pmu *__init armv7_a8_pmu_init(void) | 1191 | static struct arm_pmu *__init armv7_a8_pmu_init(void) |
1192 | { | 1192 | { |
1193 | armv7pmu.id = ARM_PERF_PMU_ID_CA8; | 1193 | armv7pmu.id = ARM_PERF_PMU_ID_CA8; |
1194 | armv7pmu.name = "ARMv7 Cortex-A8"; | 1194 | armv7pmu.name = "ARMv7 Cortex-A8"; |
@@ -1198,7 +1198,7 @@ static const struct arm_pmu *__init armv7_a8_pmu_init(void) | |||
1198 | return &armv7pmu; | 1198 | return &armv7pmu; |
1199 | } | 1199 | } |
1200 | 1200 | ||
1201 | static const struct arm_pmu *__init armv7_a9_pmu_init(void) | 1201 | static struct arm_pmu *__init armv7_a9_pmu_init(void) |
1202 | { | 1202 | { |
1203 | armv7pmu.id = ARM_PERF_PMU_ID_CA9; | 1203 | armv7pmu.id = ARM_PERF_PMU_ID_CA9; |
1204 | armv7pmu.name = "ARMv7 Cortex-A9"; | 1204 | armv7pmu.name = "ARMv7 Cortex-A9"; |
@@ -1208,7 +1208,7 @@ static const struct arm_pmu *__init armv7_a9_pmu_init(void) | |||
1208 | return &armv7pmu; | 1208 | return &armv7pmu; |
1209 | } | 1209 | } |
1210 | 1210 | ||
1211 | static const struct arm_pmu *__init armv7_a5_pmu_init(void) | 1211 | static struct arm_pmu *__init armv7_a5_pmu_init(void) |
1212 | { | 1212 | { |
1213 | armv7pmu.id = ARM_PERF_PMU_ID_CA5; | 1213 | armv7pmu.id = ARM_PERF_PMU_ID_CA5; |
1214 | armv7pmu.name = "ARMv7 Cortex-A5"; | 1214 | armv7pmu.name = "ARMv7 Cortex-A5"; |
@@ -1218,7 +1218,7 @@ static const struct arm_pmu *__init armv7_a5_pmu_init(void) | |||
1218 | return &armv7pmu; | 1218 | return &armv7pmu; |
1219 | } | 1219 | } |
1220 | 1220 | ||
1221 | static const struct arm_pmu *__init armv7_a15_pmu_init(void) | 1221 | static struct arm_pmu *__init armv7_a15_pmu_init(void) |
1222 | { | 1222 | { |
1223 | armv7pmu.id = ARM_PERF_PMU_ID_CA15; | 1223 | armv7pmu.id = ARM_PERF_PMU_ID_CA15; |
1224 | armv7pmu.name = "ARMv7 Cortex-A15"; | 1224 | armv7pmu.name = "ARMv7 Cortex-A15"; |
@@ -1228,22 +1228,22 @@ static const struct arm_pmu *__init armv7_a15_pmu_init(void) | |||
1228 | return &armv7pmu; | 1228 | return &armv7pmu; |
1229 | } | 1229 | } |
1230 | #else | 1230 | #else |
1231 | static const struct arm_pmu *__init armv7_a8_pmu_init(void) | 1231 | static struct arm_pmu *__init armv7_a8_pmu_init(void) |
1232 | { | 1232 | { |
1233 | return NULL; | 1233 | return NULL; |
1234 | } | 1234 | } |
1235 | 1235 | ||
1236 | static const struct arm_pmu *__init armv7_a9_pmu_init(void) | 1236 | static struct arm_pmu *__init armv7_a9_pmu_init(void) |
1237 | { | 1237 | { |
1238 | return NULL; | 1238 | return NULL; |
1239 | } | 1239 | } |
1240 | 1240 | ||
1241 | static const struct arm_pmu *__init armv7_a5_pmu_init(void) | 1241 | static struct arm_pmu *__init armv7_a5_pmu_init(void) |
1242 | { | 1242 | { |
1243 | return NULL; | 1243 | return NULL; |
1244 | } | 1244 | } |
1245 | 1245 | ||
1246 | static const struct arm_pmu *__init armv7_a15_pmu_init(void) | 1246 | static struct arm_pmu *__init armv7_a15_pmu_init(void) |
1247 | { | 1247 | { |
1248 | return NULL; | 1248 | return NULL; |
1249 | } | 1249 | } |