find_next_zero_bit
PATCH 1/1 find_next_zero_bit
Hi,
the following little patch repairs the function find_next_zero_bit() for ia64 platforms. Somehow this small piece of code went lost from the ia64 version. The problem is that the function returns results larger than the size of the bitmap if all bits are set (ignores stop-bits) and the size is not a multiple of sizeof(long). This lead to crashes of Ingo's new scheduler under heavy load.
Regards,
Erich
include/asm-ia64/bitops.h +2 -0
@@ -357,6 +357,8 @@ tmp = *p; found_first: tmp |= ~0UL << size; +if (tmp = ~0UL )/* Are any bits zero? */ +return result + size;/* Nope. */ found_middle:return result +ffz (tmp); }