2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 17:23:55 +08:00
linux-next/arch/tile/include
Chris Metcalf 9f1d62bed7 tile: fix bug where fls(0) was not returning 0
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().

Cc: stable@vger.kernel.org
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2012-05-25 15:00:43 -04:00
..
arch arch/tile: fix hardwall for tilegx and generalize for idn and ipi 2012-05-25 12:48:27 -04:00
asm tile: fix bug where fls(0) was not returning 0 2012-05-25 15:00:43 -04:00
hv arch/tile: allow querying cpu module information from the hypervisor 2012-05-25 12:48:28 -04:00