Skip to content

Commit

Permalink
[MIPS] BCM1480: Fix setting of irq affinity.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Mason <mason@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Mark Mason authored and Ralf Baechle committed Mar 29, 2007
1 parent d6f7036 commit 6c9fde4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/sibyte/bcm1480/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c9fde4

Please sign in to comment.