ARM: 5849/1: ARMv7: fix Oprofile events count
authorJean PIHET <jpihet@mvista.com>
Tue, 15 Dec 2009 11:36:10 +0000 (12:36 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 22 Dec 2009 15:32:31 +0000 (15:32 +0000)
commit3321c2bceab3ae6efdb2dc119c41d78e85d4b661
tree73f0472cfc082893c0d71e32a0a8b3109e6133a5
parentcdd90fb575807622e69245d5c3048281f47c77b3
ARM: 5849/1: ARMv7: fix Oprofile events count

On Oprofile ARMv7 the PMNC_D bit was set to lower the PMU IRQs
and so to decrease the risk of errata #628216 from appearing.
The effect of setting the PMNC_D bit is that the CCNT counter
is divided by 64, making the program counter events count
inaccurate.
The new OMAP3 r4 cores should have that errata fixed.

The PMNC_D bit should not be set, this patch fixes it.

Signed-off-by: Jean Pihet <jpihet@mvista.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/oprofile/op_model_v7.c