From owner-svn-src-all@FreeBSD.ORG Sat Oct 6 22:46:40 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1154106566C; Sat, 6 Oct 2012 22:46:40 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id A2F148FC08; Sat, 6 Oct 2012 22:46:39 +0000 (UTC) Received: from localhost (89-73-195-149.dynamic.chello.pl [89.73.195.149]) by mail.dawidek.net (Postfix) with ESMTPSA id CB96384F; Sun, 7 Oct 2012 00:45:24 +0200 (CEST) Date: Sun, 7 Oct 2012 00:47:03 +0200 From: Pawel Jakub Dawidek To: Andriy Gapon Message-ID: <20121006224702.GA28611@garage.freebsd.pl> References: <201210061950.q96JoNIk028911@svn.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <201210061950.q96JoNIk028911@svn.freebsd.org> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r241295 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 22:46:41 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 06, 2012 at 07:50:23PM +0000, Andriy Gapon wrote: > Author: avg > Date: Sat Oct 6 19:50:23 2012 > New Revision: 241295 > URL: http://svn.freebsd.org/changeset/base/241295 >=20 > Log: > cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit This doesn't really help me. On machine that I tried something similar, with this patch CPU fan still goes crazy when I enter DDB. What did work for me was to reduce CPU speed to supported minimum. Entering DDB then did not result in CPU fan speed up. If something like this could be done automatically, that would be great. > Reviewed by: julian > MFC after: 10 days >=20 > Modified: > head/sys/kern/kern_cons.c >=20 > Modified: head/sys/kern/kern_cons.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/kern/kern_cons.c Sat Oct 6 19:48:15 2012 (r241294) > +++ head/sys/kern/kern_cons.c Sat Oct 6 19:50:23 2012 (r241295) > @@ -384,7 +384,7 @@ cngetc(void) > if (cn_mute) > return (-1); > while ((c =3D cncheckc()) =3D=3D -1) > - ; > + cpu_spinwait(); > if (c =3D=3D '\r') > c =3D '\n'; /* console input is always ICRNL */ > return (c); --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBwtOYACgkQForvXbEpPzTygwCfR4XBG3gcSXbnkazBg7zrj4Fh VRcAoMx2pScfI1tko3lRadY+DeD3jtSc =diBM -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--