diff options
author | Mark Rutland <mark.rutland@arm.com> | 2011-06-06 11:37:50 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-08-31 11:50:08 +0200 |
commit | 7ae18a5717cbbf1879bdd5b66d7009a9958e5aef (patch) | |
tree | 877bd254703c985de0db15df76a2bf3ead1ea06f /arch/arm/kernel/perf_event_xscale.c | |
parent | ARM: perf: lock PMU registers per-CPU (diff) | |
download | linux-7ae18a5717cbbf1879bdd5b66d7009a9958e5aef.tar.xz linux-7ae18a5717cbbf1879bdd5b66d7009a9958e5aef.zip |
ARM: perf: add type field to struct arm_pmu
Currently, the ARM perf code assumes all PMUs it will handle are
CPU PMUs, having ARM_PMU_DEVICE_CPU hardcoded when reserving or
releasing hardware. This means that currently, the ARM perf code can't
support system PMUs.
This patch adds a 'type' field to struct arm_pmu, which allows the code
to reserve & release the hardware regardless of the PMU type.
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/perf_event_xscale.c')
0 files changed, 0 insertions, 0 deletions