]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitfcd84f2fca49166dab2dba259eca6e633585763f
treece9eb07612fbde779ad80a21ed58b5b300e09f70
parent7ff83f21d23d17b63bbb984fee5d12aa5a8066b3
[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