Subject: [PATCH] drivers/perf: arm-pmu: Fix handling of SPI lacking "interrupt-affinity" property

From: [email-masked] (Will Deacon)
Date: Tue, 19 Jul 2016 17:23:20 +0100

On Tue, Jul 19, 2016 at 03:39:02PM +0100, Marc Zyngier wrote:
> Patch 19a469a58720 ("drivers/perf: arm-pmu: Handle per-interrupt
> affinity mask") added support for partitionned PPI setups, but
> inadvertently broke setups using SPIs without the "interrupt-affinity"
> property (which is the case for UP platforms).
> 
> This patch restore the broken functionnality by testing whether the
> interrupt is percpu or not instead of relying on the using_spi flag
> that really means "SPI *and* interrupt-affinity property".
> 
> Reported-by: Geert Uytterhoeven <[email-masked]>
> Tested-by: Geert Uytterhoeven <[email-masked]>
> Fixes: 19a469a58720 ("drivers/perf: arm-pmu: Handle per-interrupt affinity mask")
> Signed-off-by: Marc Zyngier <[email-masked]>
> ---
>  drivers/perf/arm_pmu.c | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)

Thanks, looks good to me:

Acked-by: Will Deacon <[email-masked]>

Catalin, can you pick this up, please?

Will