arm: pmu: support pmu/perf on OMAP4
This patch fixes the bug #702999 (oprofile failure on panda (omap4)). It is based on [1] that fixes the issue by enabling pmu events for omap4, which are routed from CTI. The patch attached is a modified version of [1] with removal of some CTI register reads that cause hang in the initial phase of booting. The patch has been verified on Panda board and the profile data could be generated that are shown by opreport. Although, there is a lockdep warning "possible circular locking dependency detected" when "opcontrol --start" is called for the first time.
Regards,
Avik
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2011-March/045283.html
Signed-off-by: Avik Sil <avik.sil@linaro.org>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
5 files changed