ARM: perf: index Xscale and ARMv6 event counters starting from zero
authorWill Deacon <will.deacon@arm.com>
Tue, 19 Jul 2011 21:41:36 +0000 (22:41 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 31 Aug 2011 09:18:00 +0000 (10:18 +0100)
commitd2b41f7456223ba6abd3b38d7b54be97914f3aa5
tree08ffd6f54daa58de58ae3ae7f5017f26bed6f9aa
parentc691bb6249b25104fcb6dad31bd772c139ce4a50
ARM: perf: index Xscale and ARMv6 event counters starting from zero

Now that the ARMv7 PMU backend indexes event counters from zero, follow
suit and do the same for ARMv6 and Xscale.

Acked-by: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_v6.c
arch/arm/kernel/perf_event_xscale.c