From: Will Deacon Date: Thu, 29 Apr 2010 16:13:24 +0000 (+0100) Subject: ARM: 6064/1: pmu: register IRQs at runtime X-Git-Tag: v2.6.35-rc1~503^2~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49c006b93769a86bec2b32b9234abf016ac0d50e;p=pandora-kernel.git ARM: 6064/1: pmu: register IRQs at runtime The current PMU infrastructure for ARM requires that the IRQs for the PMU device are fixed at compile time and are selected based on the ARCH_ or MACH_ flags. This has the disadvantage of tying the Kernel down to a particular board as far as profiling is concerned. This patch replaces the compile-time IRQ registration with a runtime mechanism which allows the IRQs to be registered with the framework as a platform_device. A further advantage of this change is that there is scope for registering different types of performance counters in the future by changing the id of the platform_device and attaching different resources to it. Acked-by: Jamie Iles Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed