Re: [PATCH] 2.5: MAX_PRIO cleanup

Ingo Molnar (mingo@elte.hu)
Tue, 23 Apr 2002 18:14:10 +0200 (CEST)


On 23 Apr 2002, Robert Love wrote:

> > i'd suggest the following: keep the current hand-optimized one for the
> > bitrange it's good for, and use the find_bit variant for all other values.
> > (We had this before, check out some of the older versions of the O(1)
> > scheduler.)
>
> In earlier releases we have
>
> include/asm-i386/mmu_context.h :: sched_find_first_zero_bit
>
> but that seems to operate on a 168-bit bitmap only. Around what time
> did we have a routine that operated on arbitrary maps? What name/file?

hm, perhaps it was only my own internal version then.

in any case, you can use the find_first_zero_bit() library function i
added for exactly this purpose. Any problems with that? It wont be the
fastest option, but it will do.

Ingo

-
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/