diff options
author | Mark Rutland <mark.rutland@arm.com> | 2011-04-28 14:47:10 (GMT) |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-08-31 09:50:09 (GMT) |
commit | e1f431b57ef9e4a68281540933fa74865cbb7a74 (patch) | |
tree | 895e018faee0a504c82c02b69a8784433c3a057e /arch/arm/kernel/entry-common.S | |
parent | 7ae18a5717cbbf1879bdd5b66d7009a9958e5aef (diff) | |
download | linux-fsl-qoriq-e1f431b57ef9e4a68281540933fa74865cbb7a74.tar.xz |
ARM: perf: refactor event mapping
Currently mapping an event type to a hardware configuration value
depends on the data being pointed to from struct arm_pmu. These fields
(cache_map, event_map, raw_event_mask) are currently specific to CPU
PMUs, and do not serve the general case well.
This patch replaces the event map pointers on struct arm_pmu with a new
'map_event' function pointer. Small shim functions are used to reuse
the existing common code.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Ashwin Chaugule <ashwinc@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/entry-common.S')
0 files changed, 0 insertions, 0 deletions