ARM: perf: separate PMU backends into multiple files
authorWill Deacon <will.deacon@arm.com>
Sat, 13 Nov 2010 19:04:32 +0000 (19:04 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 25 Nov 2010 16:52:08 +0000 (16:52 +0000)
commit43eab87828fee65f89f4088736b2b7a187390a2f
treef43f9b595b1401e5429d630cf84367923e52e701
parent629948310e4270e9b32c37b4a65a8cd5d6ebf38a
ARM: perf: separate PMU backends into multiple files

The ARM perf_event.c file contains all PMU backends and, as new PMUs
are introduced, will continue to grow.

This patch follows the example of x86 and splits the PMU implementations
into separate files which are then #included back into the main
file. Compile-time guards are added to each PMU file to avoid compiling
in code that is not relevant for the version of the architecture which
we are targetting.

Acked-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event.c
arch/arm/kernel/perf_event_v6.c [new file with mode: 0644]
arch/arm/kernel/perf_event_v7.c [new file with mode: 0644]
arch/arm/kernel/perf_event_xscale.c [new file with mode: 0644]