diff options
author | Will Deacon <will.deacon@arm.com> | 2011-07-19 17:25:55 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2011-08-31 05:18:00 -0400 |
commit | c691bb6249b25104fcb6dad31bd772c139ce4a50 (patch) | |
tree | 0bcff4d0b191d91ab6738aa3a3120a3cc5425b17 /arch/arm/mm/proc-feroceon.S | |
parent | 25e29c7c0f4fcbe911b77a69f015bd6424cedcd0 (diff) |
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/mm/proc-feroceon.S')
0 files changed, 0 insertions, 0 deletions