]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6268dbd4f7e178584d4fde490e9d5167085f132
treef3c01a92818dd1a8e9cf9cd9a52cae8229332c55
parentdca2a277e5e0b54a3974fd97afa5f9c79a2c01b2
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