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.2.10~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=075964ad4370162964f41ba1136b8581ab1a302a;p=pandora-kernel.git ARM: 7355/1: perf: clear overflow flag when disabling counter on ARMv7 PMU commit 99c1745b9c76910e195889044f914b4898b7c9a5 upstream. 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. Reported-by: Ming Lei Signed-off-by: Will Deacon Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed