Suggestion cpufreq: sysctl offset for temperature

Eike Dierks <[email protected]>
Newsgroups gmane.os.freebsd.bugs
Message-ID <[email protected]>
Hello at the freebsd team
 
I want to make a suggestion,
to improve the cpufreq driver
 
The cpufreq driver provides the current cpu temperature.
The value is available at:
# sysctl dev.cpu.0.temperature
 
But that value might not always be correct.
Some cpus report that value wrong by a fixed offset.
 
I want to suggest, to introduce a sysctl variable,
to correct for such a temperature sensor offset.
 
In that way, a correction to the temperature readings
could be applied upon boot,
and all further readings would be fine.
 
In my case, I have an older amd cpu.
This exhibits an offset of 17C
 
amd explicitetely states somewhere, deep in the cpu docs,
that the cpu temperature sensor
does not return absolute temperatures.
(while the relative meassurements are quite precise with my machine)
 
 
Let's talk about, what the new sysctl should be named.
 
I want to suggest:
sysctl dev.cpu.temperature_offset
 
I'm asking for comments
~eike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.