]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: perf: consolidate common PMU behaviour
authorWill Deacon <will.deacon@arm.com>
Sat, 13 Nov 2010 17:13:56 +0000 (17:13 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 25 Nov 2010 16:52:07 +0000 (16:52 +0000)
commit84fee97a026ca085f08381054513f9e24689a303
treea9cb1205453b4e78741bd26db82e7e7254ebd6c3
parent3561d43fd289f590fdae672e5eb831b8d5cf0bf6
ARM: perf: consolidate common PMU behaviour

The functions for mapping PMU events (perf, cache and raw) are
common between all PMU types and differ only in the data on which
they operate.

This patch implements common definitions of these mapping functions
and changes the arm_pmu struct to hold pointers to the data which
they require. This is in anticipation of separating out the PMU-specific
code into separate files.

Acked-by: Jamie Iles <jamie.iles@jamieiles.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event.c