diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-04-20 09:10:50 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-04-20 09:10:50 +0000 |
commit | 1f666fa4597abc453c0923de99b27a473730ca0c (patch) | |
tree | 6a011218e6520a49c45efcf1c48e076a9eaa1d30 /target/linux/atheros/files/arch/mips | |
parent | c55299adb4ec95cb7321d8977490d6bdb19326e0 (diff) | |
download | master-31e0f0ae-1f666fa4597abc453c0923de99b27a473730ca0c.tar.gz master-31e0f0ae-1f666fa4597abc453c0923de99b27a473730ca0c.tar.bz2 master-31e0f0ae-1f666fa4597abc453c0923de99b27a473730ca0c.zip |
remove the clz function, use fls instead
SVN-Revision: 10878
Diffstat (limited to 'target/linux/atheros/files/arch/mips')
-rw-r--r-- | target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c b/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c index ed784ba88a..69cb362a00 100644 --- a/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c +++ b/target/linux/atheros/files/arch/mips/atheros/ar5315/irq.c @@ -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); } |