]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
thermal: imx_thermal: fix busywait if IMX6 temp <0C
authorTim Harvey <tharvey@gateworks.com>
Wed, 8 Jul 2015 22:49:43 +0000 (15:49 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:19 +0000 (13:29 +0200)
commit660f28a0247662bde06d8df66989e5bdd4996948
tree17cdf0d411efa8e677e4b075b69d4923f425f604
parent9f1c11cb538cc70898dcf0f4c009c0ffbecbcfd1
thermal: imx_thermal: fix busywait if IMX6 temp <0C

The temperature calculation must be typecasted to keep the compiler
from sign extending a negative value prior to division.

This fixes an issue where if the CPU temperature is <0C it will get stuck
in the busywait loop until the CPU heats up to 0C.

Cc: Ye Li <b37916@freescale.com>
Cc: Jason Liu <r64343@freescale.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/thermal/imx_thermal.c