Re: Alpha update for 2.5.3

Jeff Garzik (jgarzik@mandrakesoft.com)
Thu, 07 Feb 2002 20:20:53 -0500


First comment, the below is what Ingo suggested for
sched_find_first_zero_bit. Note that this version is -before- the bit
array changed from [I believe] 140 to 100 bits.

Second comment, some of the bits in your patch are in 2.5.3-pre3. [but
drivers/ide/ide-dma.c does not compile for me, unrelated to alpha...]

> static inline int sched_find_first_zero_bit(unsigned long *b)
> {
> unsigned long rt;
>
> rt = b[0] & b[1];
> if (unlikely(rt != -1UL))
> return find_first_zero_bit(b, MAX_RT_PRIO);
>
> return ffz(b[2]) + MAX_RT_PRIO;
> }

-- 
Jeff Garzik      | "I went through my candy like hot oatmeal
Building 1024    |  through an internally-buttered weasel."
MandrakeSoft     |             - goats.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/