1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[atheros] remove the clz function, use fls instead

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10878 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2008-04-20 09:10:50 +00:00
parent 2bd6fa2794
commit 03164df6fe
2 changed files with 2 additions and 24 deletions

View File

@@ -20,6 +20,7 @@
#include <linux/kernel.h>
#include <linux/reboot.h>
#include <linux/interrupt.h>
#include <linux/bitops.h>
#include <asm/bootinfo.h>
#include <asm/irq_cpu.h>
#include <asm/io.h>
@@ -39,7 +40,7 @@ static inline void ar5315_gpio_irq(void)
if (!pend)
return;
do_IRQ(AR531X_GPIO_IRQ_BASE + 31 - clz(pend));
do_IRQ(AR531X_GPIO_IRQ_BASE + fls(pend) - 1);
}