diff options
author | Mark Mason <mmason@upwardaccess.com> | 2007-03-26 16:28:26 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-03-29 18:46:36 -0400 |
commit | 6c9fde4bfff11b2fd93b4e518ae7ecb25a9244e4 (patch) | |
tree | e688d60d56f035488560285e8f3e2b7681730a4e | |
parent | d6f703602fee8f8bd5c108af927a420cb8cb0d36 (diff) |
[MIPS] BCM1480: Fix setting of irq affinity.
Signed-off-by: Mark Mason <mason@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/sibyte/bcm1480/irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/sibyte/bcm1480/irq.c b/arch/mips/sibyte/bcm1480/irq.c index 20af0f1bb7bf..ba0c4b776c85 100644 --- a/arch/mips/sibyte/bcm1480/irq.c +++ b/arch/mips/sibyte/bcm1480/irq.c | |||
@@ -141,11 +141,11 @@ static void bcm1480_set_affinity(unsigned int irq, cpumask_t mask) | |||
141 | unsigned long flags; | 141 | unsigned long flags; |
142 | unsigned int irq_dirty; | 142 | unsigned int irq_dirty; |
143 | 143 | ||
144 | i = first_cpu(mask); | 144 | if (cpus_weight(mask) != 1) { |
145 | if (next_cpu(i, mask) <= NR_CPUS) { | ||
146 | printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq); | 145 | printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq); |
147 | return; | 146 | return; |
148 | } | 147 | } |
148 | i = first_cpu(mask); | ||
149 | 149 | ||
150 | /* Convert logical CPU to physical CPU */ | 150 | /* Convert logical CPU to physical CPU */ |
151 | cpu = cpu_logical_map(i); | 151 | cpu = cpu_logical_map(i); |