From: Benjamin Herrenschmidt Date: Wed, 8 Feb 2012 18:11:01 +0000 (+0000) Subject: powerpc/wsp: Fix IRQ affinity setting X-Git-Tag: v3.3-rc4~6^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a768d30caa30e66ba89659f1845cc35b1bfc715;p=platform%2Fupstream%2Fkernel-adaptation-pc.git powerpc/wsp: Fix IRQ affinity setting We call the cache_hwirq_map() function with a linux IRQ number but it expects a HW irq number. This triggers a BUG on multic-chip setups in addition to not doing the right thing. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/platforms/wsp/ics.c b/arch/powerpc/platforms/wsp/ics.c index 5768743..97fe82e 100644 --- a/arch/powerpc/platforms/wsp/ics.c +++ b/arch/powerpc/platforms/wsp/ics.c @@ -346,7 +346,7 @@ static int wsp_chip_set_affinity(struct irq_data *d, * For the moment only implement delivery to all cpus or one cpu. * Get current irq_server for the given irq */ - ret = cache_hwirq_map(ics, d->irq, cpumask); + ret = cache_hwirq_map(ics, hw_irq, cpumask); if (ret == -1) { char cpulist[128]; cpumask_scnprintf(cpulist, sizeof(cpulist), cpumask);