Obtain CPU Temperature in Kernel

 Dear All,

I am using a raspberry pi B+ that uses a Broadcom BCM2837 SoC with an ARMV8  processor. I want to get the cpu temperature in a Linux kernel file. Like in x86, I can use rdmsr_on_cpu function to load the temperature from MSR_IA32_THERM_STATUS register. But I don't know how to do it on Arm, can someone please guide me?

Any help would be greatly appreciated.



More questions in this forum