Unity of thermal measure in /sys/class/thermal/thermal_zone0/

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unity of thermal measure in /sys/class/thermal/thermal_zone0/

736 Views
lucasmahieu
Contributor III

hey,

I am using the imx6q Sabre lite board and i want to get the temperature of the cpus.

I know that i can get it in

/sys/class/thermal/thermal_zone0/ 

but i don't know the unity of the information there ....

The numbers i get look like '30000' to '60000', could this number be °C * 1000 ?

best reagards

0 Kudos
1 Reply

514 Views
igorpadykov
NXP Employee
NXP Employee

Hi mahieu

you are right, unit is millidegree celsius as described on

https://www.kernel.org/doc/Documentation/thermal/sysfs-api.txt

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos