diff options
-rw-r--r-- | arch/mips/sibyte/sb1250/irq.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/arch/mips/sibyte/sb1250/irq.c b/arch/mips/sibyte/sb1250/irq.c index b9f1ff420fef..589537bfcc3d 100644 --- a/arch/mips/sibyte/sb1250/irq.c +++ b/arch/mips/sibyte/sb1250/irq.c | |||
@@ -53,7 +53,7 @@ static void disable_sb1250_irq(unsigned int irq); | |||
53 | static unsigned int startup_sb1250_irq(unsigned int irq); | 53 | static unsigned int startup_sb1250_irq(unsigned int irq); |
54 | static void ack_sb1250_irq(unsigned int irq); | 54 | static void ack_sb1250_irq(unsigned int irq); |
55 | #ifdef CONFIG_SMP | 55 | #ifdef CONFIG_SMP |
56 | static void sb1250_set_affinity(unsigned int irq, unsigned long mask); | 56 | static void sb1250_set_affinity(unsigned int irq, cpumask_t mask); |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | #ifdef CONFIG_SIBYTE_HAS_LDT | 59 | #ifdef CONFIG_SIBYTE_HAS_LDT |
@@ -117,23 +117,16 @@ void sb1250_unmask_irq(int cpu, int irq) | |||
117 | } | 117 | } |
118 | 118 | ||
119 | #ifdef CONFIG_SMP | 119 | #ifdef CONFIG_SMP |
120 | static void sb1250_set_affinity(unsigned int irq, unsigned long mask) | 120 | static void sb1250_set_affinity(unsigned int irq, cpumask_t mask) |
121 | { | 121 | { |
122 | int i = 0, old_cpu, cpu, int_on; | 122 | int i = 0, old_cpu, cpu, int_on; |
123 | u64 cur_ints; | 123 | u64 cur_ints; |
124 | irq_desc_t *desc = irq_desc + irq; | 124 | irq_desc_t *desc = irq_desc + irq; |
125 | unsigned long flags; | 125 | unsigned long flags; |
126 | 126 | ||
127 | while (mask) { | 127 | i = first_cpu(mask); |
128 | if (mask & 1) { | ||
129 | mask >>= 1; | ||
130 | break; | ||
131 | } | ||
132 | mask >>= 1; | ||
133 | i++; | ||
134 | } | ||
135 | 128 | ||
136 | if (mask) { | 129 | if (cpus_weight(mask) > 1) { |
137 | printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq); | 130 | printk("attempted to set irq affinity for irq %d to multiple CPUs\n", irq); |
138 | return; | 131 | return; |
139 | } | 132 | } |