From: Scott Wood Date: Fri, 11 Jan 2013 13:38:40 +0000 (+0000) Subject: powerpc/mpic: Make distribute_irqs obey MPIC_SINGLE_DEST_CPU X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7bd9fc556d8f5752c86fa09cbaa3c1c3ab5da86f;p=openwrt%2Fstaging%2Fblogic.git powerpc/mpic: Make distribute_irqs obey MPIC_SINGLE_DEST_CPU Previously we were setting an illegal configuration on mpc85xx MPICs if CONFIG_IRQ_ALL_CPUS is enabled (which for some reason it is in mpc85xx_smp_defconfig). Signed-off-by: Scott Wood Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index 3b2efd41abf2..66944255520d 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c @@ -54,7 +54,7 @@ static DEFINE_RAW_SPINLOCK(mpic_lock); #ifdef CONFIG_PPC32 /* XXX for now */ #ifdef CONFIG_IRQ_ALL_CPUS -#define distribute_irqs (1) +#define distribute_irqs (!(mpic->flags & MPIC_SINGLE_DEST_CPU)) #else #define distribute_irqs (0) #endif