Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2005 20:30:21 GMT
From:      Christian Wittenhorst <wiwi@progon.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/90903: cpufreq inconsistency / powerd broken
Message-ID:  <200512262030.jBQKULXS069877@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/90903; it has been noted by GNATS.

From: Christian Wittenhorst <wiwi@progon.net>
To: bug-followup@FreeBSD.org, wiwi@progon.net
Cc:  
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)
                                 break;
                 }
                 if (i==numfreqs) {
                          i=0;
                 }
 
                 if (idle < (total * cpu_running_mark) / 100 &&
                     curfreq < freqs[0]) {
                         printf("i: %d\n", i);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512262030.jBQKULXS069877>