avr32: define __fls
commit96b8d4c19d797200b973caab57ca842531184c13
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:16 +0000 (1 10:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Dec 2008 23:42:16 +0000 (1 10:12 +1030)
tree470d2388fa88558804d68d1e5e962c3d60f03b38
parent165ac433fa3f01ba99b29972f3adc283d03b0f17
avr32: define __fls

Like fls, but can't be handed 0 and returns the bit number.

(I broke this arch in linux-next by using __fls in generic code).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
arch/avr32/include/asm/bitops.h