diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/mips-boards/malta/malta_int.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/mips-boards/malta/malta_int.c b/arch/mips/mips-boards/malta/malta_int.c index ed221dc7f6ac..6244d0e2c7de 100644 --- a/arch/mips/mips-boards/malta/malta_int.c +++ b/arch/mips/mips-boards/malta/malta_int.c | |||
@@ -212,23 +212,23 @@ static inline unsigned int irq_ffs(unsigned int pending) | |||
212 | unsigned int a0 = 7; | 212 | unsigned int a0 = 7; |
213 | unsigned int t0; | 213 | unsigned int t0; |
214 | 214 | ||
215 | t0 = s0 & 0xf000; | 215 | t0 = pending & 0xf000; |
216 | t0 = t0 < 1; | 216 | t0 = t0 < 1; |
217 | t0 = t0 << 2; | 217 | t0 = t0 << 2; |
218 | a0 = a0 - t0; | 218 | a0 = a0 - t0; |
219 | s0 = s0 << t0; | 219 | pending = pending << t0; |
220 | 220 | ||
221 | t0 = s0 & 0xc000; | 221 | t0 = pending & 0xc000; |
222 | t0 = t0 < 1; | 222 | t0 = t0 < 1; |
223 | t0 = t0 << 1; | 223 | t0 = t0 << 1; |
224 | a0 = a0 - t0; | 224 | a0 = a0 - t0; |
225 | s0 = s0 << t0; | 225 | pending = pending << t0; |
226 | 226 | ||
227 | t0 = s0 & 0x8000; | 227 | t0 = pending & 0x8000; |
228 | t0 = t0 < 1; | 228 | t0 = t0 < 1; |
229 | //t0 = t0 << 2; | 229 | //t0 = t0 << 2; |
230 | a0 = a0 - t0; | 230 | a0 = a0 - t0; |
231 | //s0 = s0 << t0; | 231 | //pending = pending << t0; |
232 | 232 | ||
233 | return a0; | 233 | return a0; |
234 | #endif | 234 | #endif |