YONETANI Tomokazu <[EMAIL PROTECTED]> wrote: > On Fri, Jun 16, 2006 at 06:23:45PM +0000, Johannes Hofmann wrote: >> YONETANI Tomokazu <[EMAIL PROTECTED]> wrote: >> > On Wed, Jun 07, 2006 at 11:10:59AM +0900, YONETANI Tomokazu wrote: >> >> > FreeBSD has tools for that: sysutils/est and sysutils/estrcl >> >> >> >> FreeBSD has a daemon named powerd and it's based on estctrl. >> >> I'll try porting it to DragonFly. >> > >> > Obviously I spoke too soon for this part; powerd is too hard to port >> > without cpufreq framework. I'm going to commit est driver alone for now >> > and work on a DragonFly patch for estd(if Johannes Hofmann hasn't started >> > it yet). >> >> Ok, here is an initial patch against estd-r4.1 that makes things >> work on DragonFly. The question is how to integrate the modifications. >> We could add #ifdef's or add the patch to the pkgsrc stuff... >> Also I would suggest to adjust our est-sysctl names to match the >> NetBSD ones's. >> And what about that useconds_t? I just changed it to int. Any better >> ideas? > > Here's a modified version of your port of est driver, > with sysctl nodes under machdep.est.frequency as you suggested, > plus style(9) changes and some minor changes taken from NetBSD version. > > http://les.ath.cx/DragonFly/est-cc1.diff.gz > > Regards.
And here is a patch for pkgsrc that updates sysutils/estd to r4.1 and adds DragonFly support. http://www.ecademix.com/JohannesHofmann/estd_pkgsrc-1.patch.gz To enable this, you need to apply the above kernel patch, add options CPU_ENABLE_EST to your kernel config file and recompile your kernel. Then apply the pkgsrc patch and compile/install sysutils/estd. copy /usr/pkg/share/examples/rc.d/estd to /etc/rc.d make it executable and add estd="YES" to your /etc/rc.conf file. Regards, Johannes
