linux-uconsole/arch/tile
Chris Metcalf 6115b7a54b tile: fix bug where fls(0) was not returning 0
commit 9f1d62bed7 upstream.

This is because __builtin_clz(0) returns 64 for the "undefined" case
of 0, since the builtin just does a right-shift 32 and "clz" instruction.
So, use the alpha approach of casting to u32 and using __builtin_clzll().

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-01 15:13:00 +08:00
..
configs arch/tile: prefer "tilepro" as the name of the 32-bit architecture 2011-05-25 15:24:00 -04:00
include tile: fix bug where fls(0) was not returning 0 2012-06-01 15:13:00 +08:00
kernel arch/tile: apply commit 74fca9da0 to the compat signal handling as well 2012-05-21 09:40:03 -07:00
kvm arch/tile: parameterize system PLs to support KVM port 2010-10-15 15:38:09 -04:00
lib arch/tile: finish enabling support for TILE-Gx 64-bit chip 2011-05-12 15:52:12 -04:00
mm Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2011-05-25 15:35:32 -07:00
Kbuild
Kconfig tilegx: enable SYSCALL_WRAPPERS support 2012-06-01 15:12:52 +08:00
Kconfig.debug lib: consolidate DEBUG_STACK_USAGE option 2011-05-25 08:39:54 -07:00
Makefile arch/tile: parameterize system PLs to support KVM port 2010-10-15 15:38:09 -04:00