From: Will Deacon Date: Tue, 6 Mar 2012 16:34:22 +0000 (+0100) Subject: ARM: 7355/1: perf: clear overflow flag when disabling counter on ARMv7 PMU X-Git-Tag: v3.3-rc7~18^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c1745b9c76910e195889044f914b4898b7c9a5;p=pandora-kernel.git ARM: 7355/1: perf: clear overflow flag when disabling counter on ARMv7 PMU When disabling a counter on an ARMv7 PMU, we should also clear the overflow flag in case an overflow occurred whilst stopping the counter. This prevents a spurious overflow being picked up later and leading to either false accounting or a NULL dereference. Cc: Reported-by: Ming Lei Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed