summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/perf_event_v6.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2011-07-19 22:25:55 +0100
committerWill Deacon <will.deacon@arm.com>2011-08-31 10:18:00 +0100
commitc691bb6249b25104fcb6dad31bd772c139ce4a50 (patch)
tree0bcff4d0b191d91ab6738aa3a3120a3cc5425b17 /arch/arm/kernel/perf_event_v6.c
parent25e29c7c0f4fcbe911b77a69f015bd6424cedcd0 (diff)
downloadop-kernel-dev-c691bb6249b25104fcb6dad31bd772c139ce4a50.zip
op-kernel-dev-c691bb6249b25104fcb6dad31bd772c139ce4a50.tar.gz
ARM: perf: index ARMv7 event counters starting from zero
The current ARMv7 PMU backend indexes event counters from two, with index zero being reserved and index one being used to represent the cycle counter. This patch tidies up the code by indexing from one instead (with zero for the cycle counter). This allows us to remove many of the accessor macros along with the counter enumeration and makes the code much more readable. Acked-by: Jamie Iles <jamie@jamieiles.com> Reviewed-by: Jean Pihet <j-pihet@ti.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/perf_event_v6.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud