ARM: perf: prepare for moving CPU PMU code into separate file
authorWill Deacon <will.deacon@arm.com>
Sun, 29 Jul 2012 11:36:28 +0000 (12:36 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 23 Aug 2012 10:35:52 +0000 (11:35 +0100)
commit6dbc00297095122ea89e016ce6affad0b7c0ddac
treef3c01a92818dd1a8e9cf9cd9a52cae8229332c55
parent04236f9fe07462849215c67cae6147661368bfad
ARM: perf: prepare for moving CPU PMU code into separate file

The CPU PMU code is tightly coupled with generic ARM PMU handling code.
This makes it cumbersome when trying to add support for other ARM PMUs
(e.g. interconnect, L2 cache controller, bus) as the generic parts of
the code are not readily reusable.

This patch cleans up perf_event.c so that reusable code is exposed via
header files to other potential PMU drivers. The CPU code is
consistently named to identify it as such and also to prepare for moving
it into a separate file.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/perf_event.h
arch/arm/include/asm/pmu.h
arch/arm/kernel/perf_event.c
arch/arm/kernel/perf_event_v6.c
arch/arm/kernel/perf_event_v7.c
arch/arm/kernel/perf_event_xscale.c