Re: pmud monitoring temperature (Re: powerbook doubles)
From: Michael Schmitz <hidden>
Date: 2001-01-29 14:49:02
Attachments
- cputemp-2.4.diff [text/plain] 3855 bytes · preview
From: Michael Schmitz <hidden>
Date: 2001-01-29 14:49:02
i reworked this patch to work with the current bk tree (argh. i just complained to iain that diffs against a moving target were gross) http://redcloud.uccs.edu/~bcmidgle/linux/ btw, it looks like troy wants the _{gs}et_THRM{123} macros changed to use some different macros, but i'm not familiar with that stuff so i just reenabled the old macros.
I don't think what changes you propose there but from the comment on your
patch page ('cpu speed not included in calculations') it seems you picked
up the old version of the patch. I attach the version including
conversion time calculation from processor speed (for 2.4.0pre). The CPU
speed is preset to 500 MHz in case it can't be determined from OF, this
gives too long conversion times for slower processors - does this hurt?
What is the maximum CPU speed for machines without clock_frequency
present in the device tree?
Michael