]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 5339/1: fix __fls() on ARM
authorNicolas Pitre <nico@cam.org>
Thu, 4 Dec 2008 02:59:41 +0000 (03:59 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 4 Dec 2008 09:21:55 +0000 (09:21 +0000)
commit6a6295c7eba070304b4c6d1c1de56ea53f15190e
tree95137c3233bf0d4f07a52e8529122dfa284a5353
parent4d62cc26d4829f22be9b046508abc95fe06cadc8
[ARM] 5339/1: fix __fls() on ARM

Commit 74dfe87716d4 intended to fix truncation issues with fls() on
ARMv5+ by renaming it to __fls() and wrapping it into a C function.
However that didn't take into account the fact that __fls() already
already had different semantics in the kernel.

Let's move the __fls() code into fls() function directly, and redefine
__fls() with the appropriate semantics.  While at it, bring a generic
__fls() definition for pre ARMv5 too.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/bitops.h