]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 7 Mar 2012 09:40:49 +0000 (09:40 +0000)
commit3f31ae121348afd9ed39700ea2a63c17cd7eeed1
treeac7b0386088adf865df514a4bef062bd7d072426
parentf6f5a30c834135c9f2fa10400c59ebbdd9188567
ARM: 7357/1: perf: fix overflow handling for xscale2 PMUs

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event_xscale.c