Date: Thu, 8 Nov 2007 14:22:22 +0100 From: Simon Barner <barner@FreeBSD.org> To: Andrew Atrens <atrens@nortel.com> Cc: freebsd-current@freebsd.org, Matus Harvan <mharvan@inf.ethz.ch> Subject: Re: powerd adaptive mode latching Message-ID: <20071108132222.GC1674@dose.local.invalid> In-Reply-To: <472FD321.3010509@nortel.com> References: <472E9D0B.5080409@csub.edu> <20071106002940.GB1817@styx.ethz.ch> <472FD321.3010509@nortel.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Andrew Atrens wrote:
>
> I see the same thing with my T7500 -
>
> dev.cpu.0.freq: 300
> dev.cpu.0.freq_levels: 2201/32000 2200/31000 1925/27125 1650/23250 1600/20000 1400/17500 1200/13000
> 1050/11375 900/9750 800/10000 700/8750 600/7500 500/6250 400/5000 300/3750
>
> This patch to powerd works around the problem -
>
>
> --- powerd.c 2007-11-05 21:33:40.000000000 -0500
> +++ /usr/src/usr.sbin/powerd/powerd.c 2007-11-05 16:48:49.000000000 -0500
> @@ -182,6 +182,11 @@
> free(*power);
> return (-1);
> }
> + /* kludge to w/around too-close cpu freqs */
> + if ((i > 0 && ((*freqs)[i-1]-(*freqs)[i]) < 2)) {
> + (*numfreqs)--;
> + i--;
> + }
> p = q + 1;
> }
>
Please see kern/114722. The patch from the PR works fine with my
T61 (T7300).
Funny enough, I contacted re@ to get this into 7.0 only two minutes ago.
For the archives, the similar bug described in bin/117375 already seems
to be adressed in RELENG_7.
--
Best regards / Viele Grüße, barner@FreeBSD.org
Simon Barner barner@gmx.de
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQFHMw2OCkn+/eutqCoRAiFyAJ9zqtoeiyWnxYQzy8aXWFzdbFOAYACeJsMP
SJmOyapV6NxyAlj62VpPf4Q=
=0P4B
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071108132222.GC1674>
