]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/wsp: Fix IRQ affinity setting
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 8 Feb 2012 18:11:01 +0000 (18:11 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 14 Feb 2012 04:01:38 +0000 (15:01 +1100)
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 <benh@kernel.crashing.org>
arch/powerpc/platforms/wsp/ics.c

index 57687439254310f8521bd3da217df1b380be64ba..97fe82ee863334664eb2864f18f0b2a7fbd1dc56 100644 (file)
@@ -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);