kern/90903: cpufreq inconsistency / powerd broken

Christian Wittenhorst wiwi at
Mon Dec 26 12:30:22 PST 2005

The following reply was made to PR kern/90903; it has been noted by GNATS.

From: Christian Wittenhorst <wiwi at>
To: bug-followup at, wiwi at
Subject: Re: kern/90903: cpufreq inconsistency / powerd broken
Date: Mon, 26 Dec 2005 21:29:39 +0100

 There's more fix in powerd (still very quick and dirty...). Fixing the 
 inconsistency in cpufreq would be a far better solution...
 * If we're idle less than the active mark, bump up two levels.
 * If we're idle more than the idle mark, drop down one level.
 	for (i = 0; i < numfreqs; i++) {
                         if (freqs[i] == curfreq)
                 if (i==numfreqs) {
                 if (idle < (total * cpu_running_mark) / 100 &&
                     curfreq < freqs[0]) {
                         printf("i: %d\n", i);

More information about the freebsd-bugs mailing list