Re: [patch] O(1) scheduler, -D1, 2.5.2-pre9, 2.4.17

Anton Blanchard
2002-01-09T23:15:54Z

> > With the patch things look much better (and the kernel boots on my
> > ppc64 machine :)
>
> hey it should not even compile, you forgot to send us the PPC definition
> of sched_find_first_zero_bit() ;-)

Good point, but its ppc64 so the patch would include all of
include/asm-ppc64 and arch/ppc64 :)

I expect most architectures have a reasonably fast find_first_zero_bit
so they can simply do:

static inline int sched_find_first_zero_bit(unsigned long *bitmap)
{
return find_first_zero_bit(bitmap, MAX_PRIO);
}