From owner-cvs-src@FreeBSD.ORG Thu Aug 23 15:23:30 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9A0916A420 for ; Thu, 23 Aug 2007 15:23:30 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 79FAB13C442 for ; Thu, 23 Aug 2007 15:23:30 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 79770 invoked from network); 23 Aug 2007 15:23:28 -0000 Received: from ppp-71-139-1-224.dsl.snfc21.pacbell.net (HELO ?10.0.0.15?) (nate-mail@71.139.1.224) by root.org with ESMTPA; 23 Aug 2007 15:23:28 -0000 Message-ID: <46CDA669.8080601@root.org> Date: Thu, 23 Aug 2007 08:23:21 -0700 From: Nate Lawson User-Agent: Thunderbird 2.0.0.6 (X11/20070806) MIME-Version: 1.0 To: =?UTF-8?B?RGFnLUVybGluZyBTbcO4cmdyYXY=?= References: <200708231053.l7NAr3Pc088160@repoman.freebsd.org> <86zm0izfhf.fsf@ds4.des.no> In-Reply-To: <86zm0izfhf.fsf@ds4.des.no> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/coretemp coretemp.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 15:23:30 -0000 Dag-Erling Smørgrav wrote: > Dag-Erling Smorgrav writes: >> Log: >> Style nits + more reliable Tj(max) detection + improved reporting of >> critical temperature + sched_unbind() after rdmsr + initialize sc_dev. > > I should note that the driver currently only checks for (and reports) a > critical temperature when you read the sysctl; if you want to use devd > to react to a critical temperature, you need to set up a cron job to > poll dev.cpu.N.temperature. Hopefully, a future version of the driver > will install an interrupt handler and activate the temperature threshold > interrupts. > > DES You could also create a polling thread that runs every 10 seconds. We have that for acpi_thermal currently. -Nate