From: Will Deacon Date: Fri, 25 Mar 2011 12:13:34 +0000 (+0100) Subject: ARM: 6834/1: perf: reset counters on all CPUs during initialisation X-Git-Tag: v2.6.39-rc2~40^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=574b69cbb633037a9c305d2993aeb680f4a8badd;p=pandora-kernel.git ARM: 6834/1: perf: reset counters on all CPUs during initialisation ARMv7 dictates that the interrupt-enable and count-enable registers for each PMU counter are UNKNOWN following core reset. This patch adds a new (optional) function pointer to struct arm_pmu for resetting the PMU state during init. The reset function is called on each CPU via an arch_initcall in the generic ARM perf_event code and allows the PMU backend to write sane values to any UNKNOWN registers. Acked-by: Jean Pihet Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed