diff options
Diffstat (limited to 'arch/arm/kernel/perf_event_v7.c')
-rw-r--r-- | arch/arm/kernel/perf_event_v7.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/arch/arm/kernel/perf_event_v7.c b/arch/arm/kernel/perf_event_v7.c index f04070bd2183..bd4b090ebcfd 100644 --- a/arch/arm/kernel/perf_event_v7.c +++ b/arch/arm/kernel/perf_event_v7.c | |||
@@ -1204,31 +1204,31 @@ static void armv7pmu_reset(void *info) | |||
1204 | 1204 | ||
1205 | static int armv7_a8_map_event(struct perf_event *event) | 1205 | static int armv7_a8_map_event(struct perf_event *event) |
1206 | { | 1206 | { |
1207 | return map_cpu_event(event, &armv7_a8_perf_map, | 1207 | return armpmu_map_event(event, &armv7_a8_perf_map, |
1208 | &armv7_a8_perf_cache_map, 0xFF); | 1208 | &armv7_a8_perf_cache_map, 0xFF); |
1209 | } | 1209 | } |
1210 | 1210 | ||
1211 | static int armv7_a9_map_event(struct perf_event *event) | 1211 | static int armv7_a9_map_event(struct perf_event *event) |
1212 | { | 1212 | { |
1213 | return map_cpu_event(event, &armv7_a9_perf_map, | 1213 | return armpmu_map_event(event, &armv7_a9_perf_map, |
1214 | &armv7_a9_perf_cache_map, 0xFF); | 1214 | &armv7_a9_perf_cache_map, 0xFF); |
1215 | } | 1215 | } |
1216 | 1216 | ||
1217 | static int armv7_a5_map_event(struct perf_event *event) | 1217 | static int armv7_a5_map_event(struct perf_event *event) |
1218 | { | 1218 | { |
1219 | return map_cpu_event(event, &armv7_a5_perf_map, | 1219 | return armpmu_map_event(event, &armv7_a5_perf_map, |
1220 | &armv7_a5_perf_cache_map, 0xFF); | 1220 | &armv7_a5_perf_cache_map, 0xFF); |
1221 | } | 1221 | } |
1222 | 1222 | ||
1223 | static int armv7_a15_map_event(struct perf_event *event) | 1223 | static int armv7_a15_map_event(struct perf_event *event) |
1224 | { | 1224 | { |
1225 | return map_cpu_event(event, &armv7_a15_perf_map, | 1225 | return armpmu_map_event(event, &armv7_a15_perf_map, |
1226 | &armv7_a15_perf_cache_map, 0xFF); | 1226 | &armv7_a15_perf_cache_map, 0xFF); |
1227 | } | 1227 | } |
1228 | 1228 | ||
1229 | static int armv7_a7_map_event(struct perf_event *event) | 1229 | static int armv7_a7_map_event(struct perf_event *event) |
1230 | { | 1230 | { |
1231 | return map_cpu_event(event, &armv7_a7_perf_map, | 1231 | return armpmu_map_event(event, &armv7_a7_perf_map, |
1232 | &armv7_a7_perf_cache_map, 0xFF); | 1232 | &armv7_a7_perf_cache_map, 0xFF); |
1233 | } | 1233 | } |
1234 | 1234 | ||
@@ -1245,7 +1245,7 @@ static struct arm_pmu armv7pmu = { | |||
1245 | .max_period = (1LLU << 32) - 1, | 1245 | .max_period = (1LLU << 32) - 1, |
1246 | }; | 1246 | }; |
1247 | 1247 | ||
1248 | static u32 __init armv7_read_num_pmnc_events(void) | 1248 | static u32 __devinit armv7_read_num_pmnc_events(void) |
1249 | { | 1249 | { |
1250 | u32 nb_cnt; | 1250 | u32 nb_cnt; |
1251 | 1251 | ||
@@ -1256,7 +1256,7 @@ static u32 __init armv7_read_num_pmnc_events(void) | |||
1256 | return nb_cnt + 1; | 1256 | return nb_cnt + 1; |
1257 | } | 1257 | } |
1258 | 1258 | ||
1259 | static struct arm_pmu *__init armv7_a8_pmu_init(void) | 1259 | static struct arm_pmu *__devinit armv7_a8_pmu_init(void) |
1260 | { | 1260 | { |
1261 | armv7pmu.name = "ARMv7 Cortex-A8"; | 1261 | armv7pmu.name = "ARMv7 Cortex-A8"; |
1262 | armv7pmu.map_event = armv7_a8_map_event; | 1262 | armv7pmu.map_event = armv7_a8_map_event; |
@@ -1264,7 +1264,7 @@ static struct arm_pmu *__init armv7_a8_pmu_init(void) | |||
1264 | return &armv7pmu; | 1264 | return &armv7pmu; |
1265 | } | 1265 | } |
1266 | 1266 | ||
1267 | static struct arm_pmu *__init armv7_a9_pmu_init(void) | 1267 | static struct arm_pmu *__devinit armv7_a9_pmu_init(void) |
1268 | { | 1268 | { |
1269 | armv7pmu.name = "ARMv7 Cortex-A9"; | 1269 | armv7pmu.name = "ARMv7 Cortex-A9"; |
1270 | armv7pmu.map_event = armv7_a9_map_event; | 1270 | armv7pmu.map_event = armv7_a9_map_event; |
@@ -1272,7 +1272,7 @@ static struct arm_pmu *__init armv7_a9_pmu_init(void) | |||
1272 | return &armv7pmu; | 1272 | return &armv7pmu; |
1273 | } | 1273 | } |
1274 | 1274 | ||
1275 | static struct arm_pmu *__init armv7_a5_pmu_init(void) | 1275 | static struct arm_pmu *__devinit armv7_a5_pmu_init(void) |
1276 | { | 1276 | { |
1277 | armv7pmu.name = "ARMv7 Cortex-A5"; | 1277 | armv7pmu.name = "ARMv7 Cortex-A5"; |
1278 | armv7pmu.map_event = armv7_a5_map_event; | 1278 | armv7pmu.map_event = armv7_a5_map_event; |
@@ -1280,7 +1280,7 @@ static struct arm_pmu *__init armv7_a5_pmu_init(void) | |||
1280 | return &armv7pmu; | 1280 | return &armv7pmu; |
1281 | } | 1281 | } |
1282 | 1282 | ||
1283 | static struct arm_pmu *__init armv7_a15_pmu_init(void) | 1283 | static struct arm_pmu *__devinit armv7_a15_pmu_init(void) |
1284 | { | 1284 | { |
1285 | armv7pmu.name = "ARMv7 Cortex-A15"; | 1285 | armv7pmu.name = "ARMv7 Cortex-A15"; |
1286 | armv7pmu.map_event = armv7_a15_map_event; | 1286 | armv7pmu.map_event = armv7_a15_map_event; |
@@ -1289,7 +1289,7 @@ static struct arm_pmu *__init armv7_a15_pmu_init(void) | |||
1289 | return &armv7pmu; | 1289 | return &armv7pmu; |
1290 | } | 1290 | } |
1291 | 1291 | ||
1292 | static struct arm_pmu *__init armv7_a7_pmu_init(void) | 1292 | static struct arm_pmu *__devinit armv7_a7_pmu_init(void) |
1293 | { | 1293 | { |
1294 | armv7pmu.name = "ARMv7 Cortex-A7"; | 1294 | armv7pmu.name = "ARMv7 Cortex-A7"; |
1295 | armv7pmu.map_event = armv7_a7_map_event; | 1295 | armv7pmu.map_event = armv7_a7_map_event; |
@@ -1298,27 +1298,27 @@ static struct arm_pmu *__init armv7_a7_pmu_init(void) | |||
1298 | return &armv7pmu; | 1298 | return &armv7pmu; |
1299 | } | 1299 | } |
1300 | #else | 1300 | #else |
1301 | static struct arm_pmu *__init armv7_a8_pmu_init(void) | 1301 | static struct arm_pmu *__devinit armv7_a8_pmu_init(void) |
1302 | { | 1302 | { |
1303 | return NULL; | 1303 | return NULL; |
1304 | } | 1304 | } |
1305 | 1305 | ||
1306 | static struct arm_pmu *__init armv7_a9_pmu_init(void) | 1306 | static struct arm_pmu *__devinit armv7_a9_pmu_init(void) |
1307 | { | 1307 | { |
1308 | return NULL; | 1308 | return NULL; |
1309 | } | 1309 | } |
1310 | 1310 | ||
1311 | static struct arm_pmu *__init armv7_a5_pmu_init(void) | 1311 | static struct arm_pmu *__devinit armv7_a5_pmu_init(void) |
1312 | { | 1312 | { |
1313 | return NULL; | 1313 | return NULL; |
1314 | } | 1314 | } |
1315 | 1315 | ||
1316 | static struct arm_pmu *__init armv7_a15_pmu_init(void) | 1316 | static struct arm_pmu *__devinit armv7_a15_pmu_init(void) |
1317 | { | 1317 | { |
1318 | return NULL; | 1318 | return NULL; |
1319 | } | 1319 | } |
1320 | 1320 | ||
1321 | static struct arm_pmu *__init armv7_a7_pmu_init(void) | 1321 | static struct arm_pmu *__devinit armv7_a7_pmu_init(void) |
1322 | { | 1322 | { |
1323 | return NULL; | 1323 | return NULL; |
1324 | } | 1324 | } |