summaryrefslogtreecommitdiffstats
path: root/arch/mips/sibyte/bcm1480/irq.c
diff options
context:
space:
mode:
authorMark Mason <mmason@upwardaccess.com>2007-03-26 22:28:26 +0200
committerRalf Baechle <ralf@linux-mips.org>2007-03-30 00:46:36 +0200
commit6c9fde4bfff11b2fd93b4e518ae7ecb25a9244e4 (patch)
treee688d60d56f035488560285e8f3e2b7681730a4e /arch/mips/sibyte/bcm1480/irq.c
parent[MIPS] do_page_fault() needs to use raw_smp_processor_id(). (diff)
downloadlinux-6c9fde4bfff11b2fd93b4e518ae7ecb25a9244e4.tar.xz
linux-6c9fde4bfff11b2fd93b4e518ae7ecb25a9244e4.zip
[MIPS] BCM1480: Fix setting of irq affinity.
Signed-off-by: Mark Mason <mason@broadcom.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sibyte/bcm1480/irq.c')
-rw-r--r--arch/mips/sibyte/bcm1480/irq.c4
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)
unsigned long flags;
unsigned int irq_dirty;
- i = first_cpu(mask);
- if (next_cpu(i, mask) <= NR_CPUS) {
+ if (cpus_weight(mask) != 1) {
printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq);
return;
}
+ i = first_cpu(mask);
/* Convert logical CPU to physical CPU */
cpu = cpu_logical_map(i);