Skip to contentSkip to conversation

fix irq affinity for bcm1480

PATCH New Mark Mason 1 participant 1 message Mar 26, 2007 MIPS

lore
Share & tools
lore

Mark Mason

author
#0 lore raw

PATCH 1/1 fix irq affinity for bcm1480

Fix irq affinity setting for bcm1480.

arch/mips/sibyte/bcm1480/irq.c +2 -2
index 20af0f1..ba0c4b7 100644
@@ -141,11 +141,11 @@ static void bcm1480_set_affinity(unsigne
 	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);