[MIPS] Fix bitops for MIPS32/MIPS64 CPUs.
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 17 Apr 2006 12:19:12 +0000 (21:19 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 27 Apr 2006 14:13:49 +0000 (15:13 +0100)
commitbc818247203a7bfc40296a3f5b760de84fb8e0d1
treee0e6248b181f0e5e89349a083e60fc3812b1bf94
parentc0858d82faf96ffc32b96e23927d10844d38e564
[MIPS] Fix bitops for MIPS32/MIPS64 CPUs.

With recent rewrite for generic bitops, fls() for 32bit kernel with
MIPS64_CPU is broken.  Also, ffs(), fls() should be defined the same
way as the libc and compiler built-in routines (returns int instead of
unsigned long).

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/bitops.h