]> git.karo-electronics.de Git - karo-tx-linux.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>
Mon, 13 Aug 2012 14:58:27 +0000 (15:58 +0100)
commita07b92b1aede0f809818fee3463ab9558a3d502a
tree96a3ae0716845563cf98e7977809ef2448c074ee
parentada933be96c88fb89f42018816b3a1204ee190d9
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