Skip to content

Commit 0c2de3c

Browse files
Kyle McMartinKyle McMartin
authored andcommitted
[PARISC] use fls_long in irq.c
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
1 parent c4ba7a2 commit 0c2de3c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/parisc/kernel/irq.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,7 @@ unsigned int txn_alloc_data(unsigned int virt_irq)
336336

337337
static inline int eirr_to_irq(unsigned long eirr)
338338
{
339-
#ifdef CONFIG_64BIT
340-
int bit = fls64(eirr);
341-
#else
342-
int bit = fls(eirr);
343-
#endif
339+
int bit = fls_long(eirr);
344340
return (BITS_PER_LONG - bit) + TIMER_IRQ;
345341
}
346342

0 commit comments

Comments
 (0)