linux-mips
[Top] [All Lists]

[PATCH] fix irq affinity for bcm1480

To: linux-mips@linux-mips.org
Subject: [PATCH] fix irq affinity for bcm1480
From: Mark Mason <mmason@upwardaccess.com>
Date: Mon, 26 Mar 2007 13:28:26 -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.13 (2006-08-11)
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);

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] fix irq affinity for bcm1480, Mark Mason <=