]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Fix __fls for non-MIPS32/MIPS64 cpus
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 3 May 2008 22:25:02 +0000 (00:25 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 May 2008 15:46:55 +0000 (16:46 +0100)
commit081b1186436aee1f27f992cd638dff5d1f3f244c
treece9eb07612fbde779ad80a21ed58b5b300e09f70
parentc2573bcf9457431a1cefa6793ad5fe490ba003d1
[MIPS] Fix __fls for non-MIPS32/MIPS64 cpus

Only MIPS32 and MIPS64 CPUs implement clz/dclz. Therefore don't export
__ilog2() for non MIPS32/MIPS64 cpus and use generic __fls bitop code for
these cpus.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/bitops.h