summaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/files/include/asm-mips/mach-atheros
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-04-20 09:10:50 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-04-20 09:10:50 +0000
commit03164df6fe4b39e09366e096808b3934cfc55693 (patch)
treed1a5f67e1ee7e7ee92764321196de70f27264851 /target/linux/atheros/files/include/asm-mips/mach-atheros
parent2bd6fa27943926657fda73114248f28e3784f382 (diff)
[atheros] remove the clz function, use fls instead
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10878 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/files/include/asm-mips/mach-atheros')
-rw-r--r--target/linux/atheros/files/include/asm-mips/mach-atheros/ar531x.h23
1 files changed, 0 insertions, 23 deletions
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 dccf54155..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.
*/