[RFC PATCH 1/6] ARM: pmu: register IRQs at runtime
Jamie Iles
jamie at jamieiles.com
Tue Mar 16 07:41:31 EDT 2010
On Fri, Mar 12, 2010 at 05:29:39PM +0000, Will Deacon wrote:
> 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 passed in from the board initialisation files using
> the pmu_device_register() function.
>
> A further advantage of this change is that there is scope for registering
> different types of performance counters in the future by adding a new field
> to the arm_pmu_type enumeration.
>
> Cc: Russell King - ARM Linux <linux at arm.linux.org.uk>
> Cc: Jamie Iles <jamie.iles at picochip.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>
Hi Will,
I much prefer this rather than the old static list that we had before. As an
aside, do you know of any ARM PMU's that need memory resources in addition to
the IRQ's? If so perhaps a platform_device might be an easy way of extending
this.
Anyway,
Acked-by: Jamie Iles <jamie.iles at picochip.com>
Jamie
More information about the linux-arm-kernel
mailing list