X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/66b7ecf8e0e324c1bd76eb873e128a98a68dd539..adde7768a2eab2950a7628319ec832c63a00ff03:/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h diff --git a/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h b/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h index c77d74ec9..ba52a2b32 100644 --- a/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h +++ b/target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h @@ -12,29 +12,6 @@ extern void (*board_time_init)(void); #endif /* - * C access to CLZ instruction - * (count leading zeroes). - */ -static inline int clz(unsigned long val) -{ - int ret; - - __asm__ volatile ( - ".set\tnoreorder\n\t" - ".set\tnoat\n\t" - ".set\tmips32\n\t" - "clz\t%0,%1\n\t" - ".set\tmips0\n\t" - ".set\tat\n\t" - ".set\treorder" - : "=r" (ret) - : "r" (val) - ); - - return ret; -} - -/* * Atheros CPUs before the AR2315 are using MIPS 4Kc core, later designs are * using MIPS 4KEc R2 core. This makes it easy to determine the board at runtime. */ @@ -157,7 +134,7 @@ extern void ar5315_pci_irq(int irq); static inline u32 sysRegMask(u32 phys, u32 mask, u32 value) { u32 reg; - + reg = sysRegRead(phys); reg &= ~mask; reg |= value & mask;