ARM: 7357/1: perf: fix overflow handling for xscale2 PMUs
authorWill Deacon <will.deacon@arm.com>
Tue, 6 Mar 2012 16:35:55 +0000 (17:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:39 +0000 (12:31 -0700)
commit261d612b2edcb3e8b00ad990b6b81c71e4a5d108
treeed194869f9a07a3c1b6b112d55c6bb0b9d47936d
parent288733a6065034d1870b02b164da0fb2d8452178
ARM: 7357/1: perf: fix overflow handling for xscale2 PMUs

commit 3f31ae121348afd9ed39700ea2a63c17cd7eeed1 upstream.

xscale2 PMUs indicate overflow not via the PMU control register, but by
a separate overflow FLAG register instead.

This patch fixes the xscale2 PMU code to use this register to detect
to overflow and ensures that we clear any pending overflow when
disabling a counter.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/kernel/perf_event_xscale.c