提交 6f8782c4 编写于 作者: A Atsushi Nemoto 提交者: Ralf Baechle

[MIPS] Use __ffs() instead of ffs() in ip32_irq0().

    
With recent rewrite for generic bitops, ffs() is defined the same way
as the libc and compiler built-in routines (returns int instead of
unsigned long).  Use __ffs() for 64bit value.
Signed-off-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 bc818247
...@@ -507,13 +507,14 @@ static void ip32_irq0(struct pt_regs *regs) ...@@ -507,13 +507,14 @@ static void ip32_irq0(struct pt_regs *regs)
int irq = 0; int irq = 0;
crime_int = crime->istat & crime_mask; crime_int = crime->istat & crime_mask;
irq = ffs(crime_int); irq = __ffs(crime_int);
crime_int = 1 << (irq - 1); crime_int = 1 << irq;
if (crime_int & CRIME_MACEISA_INT_MASK) { if (crime_int & CRIME_MACEISA_INT_MASK) {
unsigned long mace_int = mace->perif.ctrl.istat; unsigned long mace_int = mace->perif.ctrl.istat;
irq = ffs(mace_int & maceisa_mask) + 32; irq = __ffs(mace_int & maceisa_mask) + 32;
} }
irq++;
DBG("*irq %u*\n", irq); DBG("*irq %u*\n", irq);
do_IRQ(irq, regs); do_IRQ(irq, regs);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册