commit | 2fb328cb3dc03741809d143e5cf31790cd222216 | [log] [tgz] |
---|---|---|
author | Tim Harvey <tharvey@gateworks.com> | Wed Jul 08 15:49:43 2015 -0700 |
committer | Stefano Babic <sbabic@denx.de> | Fri Jul 10 10:15:19 2015 +0200 |
tree | fcc36bcffc86bf641e9adc2c700eecbec42e2c4b | |
parent | b7c3fcfa2aa46be238c85979d38b4fb1766de2a7 [diff] |
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>