Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] fix irq affinity for bcm1480
@ 2007-03-26 20:28 Mark Mason
  0 siblings, 0 replies; only message in thread
From: Mark Mason @ 2007-03-26 20:28 UTC (permalink / raw)
  To: linux-mips

Fix irq affinity setting for bcm1480.

Signed-off-by: Mark Mason (mason@broadcom.com)

diff --git a/arch/mips/sibyte/bcm1480/irq.c b/arch/mips/sibyte/bcm1480/irq.c
index 20af0f1..ba0c4b7 100644
--- a/arch/mips/sibyte/bcm1480/irq.c
+++ b/arch/mips/sibyte/bcm1480/irq.c
@@ -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);

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-26 20:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-26 20:28 [PATCH] fix irq affinity for bcm1480 Mark Mason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox