From owner-cvs-src@FreeBSD.ORG Fri Aug 24 22:31:06 2007 Return-Path: <owner-cvs-src@FreeBSD.ORG> 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 AE80F16A469 for <cvs-src@freebsd.org>; Fri, 24 Aug 2007 22:31:06 +0000 (UTC) (envelope-from mureninc@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.226]) by mx1.freebsd.org (Postfix) with ESMTP id 46CA813C46C for <cvs-src@freebsd.org>; Fri, 24 Aug 2007 22:31:06 +0000 (UTC) (envelope-from mureninc@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so703975wra for <cvs-src@freebsd.org>; Fri, 24 Aug 2007 15:31:05 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=k9PoNwaGRNCd2qASOmo2+FZUX5M9s5bd5h+UV2qpUv9EzLBO5aonT8VNj5+AddWtSTHGzG1AewyJJ+Y1iwvXV41ToelbYAs1uDkKZT10UTUl1/SDaioivS5zhlwiJdm0CO6gGH87x/BjPmcEI1ULP6jpjFtAa0BNdOpeiCiN+8w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=LBfnASvgvKB0fMalhVoFR40ola4Vw1Koo1mtCBhfnEdPSRXGyi4aKoqZwmPOvY7Fwz5Qug8lzSidW6+H7h/8XB/RlcE37G8Fcb9+8ILH2sKkawTBFihzdBEcfu8cELvOBuUZQZWGrmNd+2rMMzgPDecyHB+g0M6YvJSFx/r4X0Y= Received: by 10.90.101.19 with SMTP id y19mr9769360agb.1187994665285; Fri, 24 Aug 2007 15:31:05 -0700 (PDT) Received: by 10.90.78.10 with HTTP; Fri, 24 Aug 2007 15:31:05 -0700 (PDT) Message-ID: <f34ca13c0708241531v2994fe35x442318ec3fe75872@mail.gmail.com> Date: Fri, 24 Aug 2007 18:31:05 -0400 From: "Constantine A. Murenin" <cnst@FreeBSD.org> Sender: mureninc@gmail.com To: "Nate Lawson" <nate@root.org> In-Reply-To: <46CDA669.8080601@root.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200708231053.l7NAr3Pc088160@repoman.freebsd.org> <86zm0izfhf.fsf@ds4.des.no> <46CDA669.8080601@root.org> X-Google-Sender-Auth: eb02adbb614bc472 Cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= <des@des.no>, src-committers@freebsd.org, "Constantine A. Murenin" <cnst@freebsd.org>, cvs-all@freebsd.org, cvs-src@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 <cvs-src.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>, <mailto:cvs-src-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/cvs-src> List-Post: <mailto:cvs-src@freebsd.org> List-Help: <mailto:cvs-src-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>, <mailto:cvs-src-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 24 Aug 2007 22:31:06 -0000 On 23/08/07, Nate Lawson <nate@root.org> wrote: > Dag-Erling Sm=F8rgrav wrote: > > Dag-Erling Smorgrav <des@FreeBSD.org> writes: > >> Log: > >> Style nits + more reliable Tj(max) detection + improved reporting of > >> critical temperature + sched_unbind() after rdmsr + initialize sc_de= v. > > > > 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 threshol= d > > interrupts. > > > > DES > > You could also create a polling thread that runs every 10 seconds. We > have that for acpi_thermal currently. Actually, this is what coretemp(4) does in my cnst-sensors p4 branch, using a sensor_task, people are welcome to test it. ;) C.