Subject: Re: kern/37244: sched_m2 assumes ncpu is a power of 2
To: None <rmind@NetBSD.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 10/30/2007 08:46:23
> Here is the patch to deal with non power of 2 values. We need to take the
> lower value for min_catch.

probably "log2 for integer" is worth to have in libkern.
subr_vmem.c has something similar.  (calc_order)

> Actually, min_catch value should change according to the cpuctl
> actions, that is ncpuonline. But that is a separate story..

sure.

YAMAMOTO Takashi