mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
[PARISC] use fls_long in irq.c
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
parent
c4ba7a2e44
commit
0c2de3c6c4
@ -336,11 +336,7 @@ unsigned int txn_alloc_data(unsigned int virt_irq)
|
||||
|
||||
static inline int eirr_to_irq(unsigned long eirr)
|
||||
{
|
||||
#ifdef CONFIG_64BIT
|
||||
int bit = fls64(eirr);
|
||||
#else
|
||||
int bit = fls(eirr);
|
||||
#endif
|
||||
int bit = fls_long(eirr);
|
||||
return (BITS_PER_LONG - bit) + TIMER_IRQ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user