cvs commit: src/sys/dev/coretemp coretemp.c

Constantine A. Murenin cnst at FreeBSD.org
Fri Aug 24 15:31:06 PDT 2007


On 23/08/07, Nate Lawson <nate at root.org> wrote:
> Dag-Erling Smørgrav wrote:
> > Dag-Erling Smorgrav <des at FreeBSD.org> 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.

Actually, this is what coretemp(4) does in my cnst-sensors p4 branch,
using a sensor_task, people are welcome to test it. ;)

C.


More information about the cvs-src mailing list