| From 9804c9eaeacfe78651052c5ddff31099f60ef78c Mon Sep 17 00:00:00 2001 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Mon, 7 Feb 2011 19:28:01 +0100 |
| Subject: [PARISC] fix per-cpu flag problem in the cpu affinity checkers |
| |
| From: Thomas Gleixner <tglx@linutronix.de> |
| |
| 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: Greg Kroah-Hartman <gregkh@suse.de> |
| |
| --- |
| arch/parisc/kernel/irq.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/arch/parisc/kernel/irq.c |
| +++ b/arch/parisc/kernel/irq.c |
| @@ -117,7 +117,7 @@ int cpu_check_affinity(unsigned int irq, |
| 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); |