Subject: [PATCH 1/6] ARM: perf-events: add Realview PMU IRQs to pmu.c

From: [email-masked] (Tony Lindgren)
Date: Wed, 10 Mar 2010 13:59:18 -0800

* Will Deacon <[email-masked]> [100310 02:46]:
> Add the PMU IRQs for the Realview boards to kernel/pmu.c so that
> they can be used by the perf-events framework.
> 
> Signed-off-by: Will Deacon <[email-masked]>
> ---
>  arch/arm/kernel/pmu.c |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/kernel/pmu.c b/arch/arm/kernel/pmu.c
> index a124312..11a321e 100644
> --- a/arch/arm/kernel/pmu.c
> +++ b/arch/arm/kernel/pmu.c
> @@ -36,6 +36,20 @@ static const int irqs[] = {
>  	IRQ_EB11MP_PMU_CPU1,
>  	IRQ_EB11MP_PMU_CPU2,
>  	IRQ_EB11MP_PMU_CPU3,
> +#elif defined(CONFIG_MACH_REALVIEW_PB1176)
> +	IRQ_DC1176_CORE_PMU,
> +#elif defined(CONFIG_MACH_REALVIEW_PB11MP)
> +	IRQ_TC11MP_PMU_CPU0,
> +	IRQ_TC11MP_PMU_CPU1,
> +	IRQ_TC11MP_PMU_CPU2,
> +	IRQ_TC11MP_PMU_CPU3,
> +#elif defined(CONFIG_MACH_REALVIEW_PBA8)
> +	IRQ_PBA8_PMU,
> +#elif defined(CONFIG_MACH_REALVIEW_PBX)
> +	IRQ_PBX_PMU_CPU0,
> +	IRQ_PBX_PMU_CPU1,
> +	IRQ_PBX_PMU_CPU2,
> +	IRQ_PBX_PMU_CPU3,
>  #elif defined(CONFIG_ARCH_OMAP3)
>  	INT_34XX_BENCH_MPU_EMUL,
>  #elif defined(CONFIG_ARCH_IOP32X)

Just a generic comment.. It would be nice to get rid of the
ifdef eliffery here for the interrupt. At least we can now
compile omap2 + 3 + 4 into the same binary, so stuff like
this caused mysterious errors easily.

Regards,

Tony