]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fix per-cpu flag problem in the cpu affinity checkers
authorThomas Gleixner <tglx@linutronix.de>
Mon, 7 Feb 2011 18:28:01 +0000 (19:28 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:47:09 +0000 (12:47 -0400)
commit 9804c9eaeacfe78651052c5ddff31099f60ef78c upstream.

The CHECK_IRQ_PER_CPU is wrong, it should be checking
irq_to_desc(irq)->status not just irq.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/parisc/kernel/irq.c

index efbcee5d222095c7d8ad216bcebb6f72016b3f2b..e13fc3f3778714223392a88b818e60c618ec364a 100644 (file)
@@ -117,7 +117,7 @@ int cpu_check_affinity(unsigned int irq, const struct cpumask *dest)
        int cpu_dest;
 
        /* timer and ipi have to always be received on all CPUs */
-       if (CHECK_IRQ_PER_CPU(irq)) {
+       if (CHECK_IRQ_PER_CPU(irq_to_desc(irq)->status)) {
                /* Bad linux design decision.  The mask has already
                 * been set; we must reset it */
                cpumask_setall(irq_desc[irq].affinity);