Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6c9fde4bfff11b2fd93b4e518ae7ecb25a9244e4
Commit:     6c9fde4bfff11b2fd93b4e518ae7ecb25a9244e4
Parent:     d6f703602fee8f8bd5c108af927a420cb8cb0d36
Author:     Mark Mason <[EMAIL PROTECTED]>
AuthorDate: Mon Mar 26 13:28:26 2007 -0700
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Thu Mar 29 23:46:36 2007 +0100

    [MIPS] BCM1480: Fix setting of irq affinity.
    
    Signed-off-by: Mark Mason <[EMAIL PROTECTED]>
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 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 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(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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to